Templates and refactorings, oh my

This was originally multiple commits but my branch became out of sync when we scrubbed the history a couple weeks ago. For sanity's sake, I re-cloned and folded everything into one commit.

@ascott1 The thing you'll probably care most about is that I installed [hbsfy](https://github.com/epeli/node-hbsfy) and moved all markup into separate template files.