CMS-2537 Introduce TemplateKey for Template.
Added TemplateKey to Template class and descendants.