code: function (path, basePath) {
          if (!basePath || path.match(/^\//)) {
              return path;
          }
          var pathParts = path.split('/');
          var basePathParts = basePath.split('/');
  
          var item = pathParts[0];
          while(item === '.' || item === '..') {
              if (item === '..') {
                  basePathParts.pop();
              }
              pathParts.shift();
              item = pathParts[0];
          }
          return basePathParts.join('/') + '/' + pathParts.join('/');
      }
docs: Relative path to absolute path
  @param  {string} path
  @param  {string} basePath
  @return {string}
  @memberOf clay.core.util