Precompiled the templates

I removed the templates from the index.html file and move them to their own files and then precompiled them with `grunt-contrib-jst`. (Merge was kind of messy, but I think I got it all cleaned up correctly.)