Add ability to register and unregister mocks / modules.