Starting to take advantage of jinja templating. Reworked the main
view.