To handlebars

Moved a bunch of the templates to handlebars.