Almost done re-writing the router to route after the root router has run middleware. The commited code is a stash, it doesn't work at all