Add support for Handlebars templates

Add an implementation of `TemplateEngine` to support templates written
using Handlebars Mustache markup as discussed in issue #52. Add a
`templateEngine` variable to allow template scripts to choose the
alternative engine. Default is `SimpleTemplateEngine`.