code: function init(config) {
      var tokenConfig = config.security.token || {};
      var privateKey = tokenConfig.privateKey;
      var decryptedToken = {
          _id: tokenConfig.webserverId,
          authToken: tokenConfig.webserverToken
      };
      var jwt = jsonwebtoken.sign(decryptedToken, privateKey);
  
      headers = { 'Authorization': 'Bearer ' + jwt };
  
      admin._id =  mongo.newObjectId('000000000000000000000000');
      admin.name = 'systemAdmin';
      admin.type = 'user';
      admin.role = 'admin';
  
      var apiConfig = config.api || {};
      var host = apiConfig.internalHost || apiConfig.host;  // from web server to api use internalHost name
      var useSSL = apiConfig.serverUseSSL !== undefined ?
          apiConfig.serverUseSSL : config.useSSL;
      baseUrl = (useSSL ? 'https://' : 'http://') + host;
  
      var port = config.api.port;
      if (port !== 80 && port !== 443) {
          baseUrl += ':' + port;
      }
  
      baseUrl += '/' + config.api.version;
  
      return config;
  }
docs: Init called at startup and is used to
  @param config