router

Changed things such that the router is a global utility.
Added simple decorator for routes.