Better route/middleware management, better CSP middleware, and a /test/issue page.

Here is a smorgasboard of minor improvements. See the individual commit messages for more information!