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

@jwang47 Branch ready for review.
Account of the user that is trying to resolve a template.