Refactors the way we handle initialization of element editors.

Fixes a lot of issues we had with (re)-initializing element editor views:

* The TinyMCE initialization is now aware of custom configurations
* The Element dirty observers now are universally bind to the Element.toggle event.
* A page onunload handler was added, that warns users if navigating away from pages with unsaved content.