fixing cross domain issues with html templates by setting all templates ...

...as script elements on the admin page and accessing them that way instead of loading via ajax. fixes #47