refactor(configuration): make config independent of router

The RouterConfiguration required a router instance. Now you can create a
config object, build your configuration up and then export the config to
a router instance.