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.
Merge pull request #3 from dsymonds/patch-1

Render template to bytes.Buffer.