WIP: Template precompilation

This is a work-in-progress attempt to get precompiled templates. I've got `alert_message` precompiling but it's not getting added into the build correctly. I'm not sure how it would fit into the module declarations (if it has to) or at what point it could be included in the concatenation.

Suggestions please!