corrects gallery.json's format, removes excess code in controller.js, sets up handlebars structure and validates that the handlebars/gallery configuration is properly set up