Improved application router setup

When setting up the module and path prefixes, we can actually just look
at the name of the package we're in to do the configuration.