improve routing

Discovered PathPrefixRoute in the webapp2 docs, which has greater efficiency than my previous solution.