Add stubs to module manager and make it service locator aware.