rename Template to TemplateDocument and add initial rewrite impl
Add entry point API for new template parser