Reworking how the template is setup

This will make changing templates much easier since each one can be
organized into its own separate folder and it only has to be defined
once in the routes file.