docs: function verifyConfig(config) {
    var i = 0;
    var required = ['logs', 'client_name', 'server_port'];
    var optional = {
      'server_host': '127.0.0.1'
    };
  
    for(i = 0; i < required.lenght; i++) {
      if(!config[required[i]]) {
        throw 'Config missing required: ' + required[i];
      }
    }
  
    for(i in optional) {
      if(optional.hasOwnProperty(i)) {
        if(!config[i]) {
          config[i] = optional[i];
        }
      }
    }
  
    return config;
  }