A polyfill for the HTMLTemplate element extracted and decoupled from Polymer.