Refactoring pageeditor.js and texteditor.js to use the new modal.js. Also adds modalId to all callbacks. Therefor all code using Modal.create() needed an update.