Implementing the Templates and TemplateLoader so templates can be loaded using ajax.
Added arrayToObject util function
Added basic finding of page templates in the local document

TODO: add support for * in paths (*/error, /path/*, etc)
renamed TemplateLoader to PageLoader, since it loads pages.
It is only the Templates provider which knows if the page is a template (in the document) or a page (to be loaded via ajax)
Implemented a configuration option for converting a path to a url