More work on templating

Pre-compile certain templates. Main page template is still pulled from
the server. Need to work on caching somehow.