code: function extractConnectionInfo(opts) {
      var params = {};
      var defaultServer = opts.secureCommands ?
                          { hostname: '127.0.0.1', port: 4445 } :
                          { hostname: 'ondemand.saucelabs.com', port: 80 };
  
      params.hostname = opts.hostname || defaultServer.hostname;
      params.port     = opts.port || defaultServer.port;
      if (opts.key) {
        params.accessKey = opts.key;
      }
      ['auth', 'username'].forEach(function(prop) {
        if (opts[prop]) {
          params[prop] = opts[prop];
        }
      });
      return params;
    }
docs: Extracts wd connection params from grunt options
  
  Utility function that returns named params
  that can be used by wd.remote or wd.promiseChainRemote