Reworked routes to allow or operators, so that alternative URI's can be specified in one route.
Reworked middleware to use context managers. Ditched next_ stuff.