Implemented warning when user navigates away from editor with unsaved changes (closes #30).