HtmlResourceService changes - returns a clone of the template, adds support for <template> tags

- The resource service now returns a clone of the template rather than the template itself.
- Added support for templates defined within a "template" tag, note that the returned element is a document fragment in that case.