src/libs/Module.js
function register(sModuleId, aDependencies, fpCreator) {
  const oModules = getModules();
  if (isFunction(aDependencies)) {
    fpCreator = aDependencies;
    aDependencies = [ '$$_bus', '$$_module', '$$_log', 'gl_Hydra' ];
  }
  oModules[sModuleId] = new FakeModule(sModuleId, fpCreator);

  oModules[sModuleId].dependencies = aDependencies;
  return oModules[sModuleId];
}
function register(sModuleId, aDependencies, fpCreator) {
  const oModules = getModules();
  if (isFunction(aDependencies)) {
    fpCreator = aDependencies;
    aDependencies = [ '$$_bus', '$$_module', '$$_log', 'gl_Hydra' ];
  }
  oModules[sModuleId] = new FakeModule(sModuleId, fpCreator);

  oModules[sModuleId].dependencies = aDependencies;
  return oModules[sModuleId];
}
register is the method that will add the new module to the oModules object.
sModuleId will be the key where it will be stored.
@param {String} sModuleId
@param {Array} aDependencies
@param {Function | *} fpCreator
@return {Object}