feature: Allow routes to be instantiated.

* If a route file exports a function, instantiate the function to create the route. Very useful for testing.

fixes #42