Refactoring templates to utilize base inheritance more.

This utilizes the base.html template to abstract out things that are used on every page.