Implement templating

Templating uses Go's html/template package. A base template can be
specified when calling Context.Render.