code: function validateParams(connections, options, appConfig, paramsList, cb) {
      var validate = validation(appConfig);
      async.series([
        function(cb) {
          paramsList.push(cb);
          validate.has.apply(validate, paramsList);
        },
        function(cb) {
          groups.validateAppAllowedForUser(connections, options.restrictToUser, appConfig.appId, cb);
        }
      ], cb);
    }
docs: /*
  updateAppConfig(connections, options, appConfig, cb)
  
  connections: {
  mongooseConnection: ...
  }
  
  options: {
  uri:       db connection string,
  userEmail: user email address string
  }
  
  appConfig: {
  appId: id of app
  "client": {
  "logging": {
  "enabled": {type: Boolean, default: false}
  }
  },
  "cloud": {
  "logging": {
  "enabled": {type: Boolean, default: false}
  }
  }
  }
  
  cb  - callback function (err)