Use handlebars for generating HTML

Fixes #5