Started the Compile refactoring. Lots of more work needed
precompiling the templates. To be continued