Added JSON support, handlebars template loading