Adding early version of template cache generator.

Still early with very little vetting in place.