Enable custom routing

WIP!

A small puzzle pieces towards #34. Includes fancy alternative route for applications#show

(Note that `:authority` and `:reference` aren't actually used for anything although they should be available to the controller)
Does this have to be a global variable?