Refactoring editor and panels into Backbone views