code: function (path, query, cb) {
      var httpMethod = 'get',
          config = User.datastore.config,
          endpoint = url.format({
                      host: config.host,
                      pathname: path,
                      protocol: config.protocol,
                      query: query
                    }),
          req = request[httpMethod](endpoint);
      req.end(cb);
    }
docs: Send an arbitrary GET query to REST backend
  @param path request path
  @param query request query-string object `{paramA: "valueA"}`
  @param cb request end callback. See https://github.com/visionmedia/superagent