Registers a module on the Module Registry. Note that this function should only be used if a module is alread deployed and you want to register it on the registry. Otherwise, you should use either deployModule or deployModuleViaFactory to deploy and register a module in one step.