Register a module with the module registry.
The module to register.
The factory to create the module.