Allow module errors to be registered to
Update documentation for initialModulesLoaded, onModuleLoaded and onModuleError.