Adding routeModule method to Dispatcher.

Currently the test case fails as module-local globals need to be
implemented.