Replace Handlebars with Spacebars (fixes #57) and remove trailing whitespace.