Renamed ModalWidget.js to ModalView.js in preparation of moving it to the framework. Also bunch of other refactoring.