Editor: Page exit bindings

Added event binding to page exit and route change events when the editor
has content that has been either newly entered or edited in some way.
This will keep the user from navigating away from the page after they
have edited some content in the editor.