docs: function(opts) {
  	EventEmitter.call(this);
  	this.port = opts.port;
  	this.env = opts.env;
  	this.values = {};
  	this.master = opts.master;
  
  	this.modules = {};
  	this.commands = {
  		'list': listCommand,
  		'enable': enableCommand,
  		'disable': disableCommand
  	};
  
  	if (this.master) {
  		this.authUser = opts.authUser || utils.defaultAuthUser;
  		this.authServer = opts.authServer || utils.defaultAuthServerMaster;
  		this.agent = new MasterAgent(this, opts);
  	} else {
  		this.type = opts.type;
  		this.id = opts.id;
  		this.host = opts.host;
  		this.authServer = opts.authServer || utils.defaultAuthServerMonitor;
  		this.agent = new MonitorAgent({
  			consoleService: this,
  			id: this.id,
  			type: this.type,
  			info: opts.info
  		});
  	}
  }