Make template loader an initializer

This makes it possible to have other initializers that are
relative to template loading from the DOM.