:compiled templates and snippets creation

When under creation, templates or snippets are added to the root DOM
element instead of the body DOM element.
Merge pull request #42 from Ewen0/master

:compiled templates/snippets creation before the DOM is loaded