Template compiler

Compile templates on build. Should fix #44. One thing that is missing is cleaning up .hbs files from the tree, I'll try to fix that too and update this PR.