got the patterns and globals necessary for new routing regexes, etc.
it's not a pretty implementation, but current tests pass and it seems to work, albeit redirection is still a thing.