COOPR:629 Update template APIs to support extending templates and including partials

@jwang47 Branch ready for review.
The template is provided, so why do we need to throw TemplateNotFoundException?