code: function (remote, driver) {
        return function webdriverCommand() {
          var deferred = Q.defer();
          // the request meta data
          var params = Driver.generateParamset(remote.params, arguments);
          var body = Driver.generateBody({}, remote.onRequest, this, params);
          var options = Driver.generateRequestOptions(this.opts.host, this.opts.port, this.opts.path, Driver.parseUrl(remote.url, this.options), remote.method, body, this.opts.auth);
  
          // generate the request, wait for response & fire the request
          var req = new http.ClientRequest(options);
          req.on('response', driver._onResponse.bind(this, driver, remote, options, deferred));
          req.end(body);
  
          return deferred.promise;
        };
      }
docs: Generates the webdriver callback function
  
  @method _generateWebdriverCommand
  @param {object} remote Dummy request body (function name, url, method)
  @param {DalekJs.Internal.Driver} driver Driver instance
  @return {function} webdriverCommand Generated webdriver command function
  @private