Render template to bytes.Buffer.

Rendering a template straight to the http.ResponseWriter prevents proper error handling
in the common case of the template execution failing part way through.