This commit entirely refactors the use of html templates. Instead of inheriting from a shared template, we insert the results into a base template.