Returning TemplateResponses instead of render_to_response

TemplateResponse's allow us greater flexibility when manipulating the response returned from a view in a middleware processor for example.

They can be used as a direct swap in for render_to_response as described here in the Django documentation: https://docs.djangoproject.com/en/dev/ref/template-response/#using-templateresponse-and-simpletemplateresponse