Mappings trump regexes

Rules were in middleware, and went before the app. This cannot be allowed to happen or the world will end.