Migrate front-end to use underscore/backbone/marionette

This PR contains a massive re-write of the JavaScript used on the front-end (mainly the editor). It introduces Marionette/Backbone as the frameworks to simplify the code and make it more maintainable. It also cleans up a lot of static files, removes unused/deprecated files and cleans up the workflow to generate these files.