Beginnings of template compilation.

Nowhere near done yet.
Entry point module.