Refactor routing so it's not necessary to list all templates

This also changes all the routes to only accept GET requests.