Additional basic setup and templating

Added enough architecture to utilize templating, and set up precompiled
templating for RequireJS.