Add support for rewire for dependency mocking, also add module to global using module name as namespace