Allow control over the template content type.

1. Can be specified as part of the Template object
2. Derived from template id extension otherwise