User prompted if leaving an unsaved page

The user is now prompted for confirmation if is leaving a page containing unsaved changes.
Merge pull request #568 from fabioporta/'ask_for_confirmation_on_page_exit

User prompted if leaving an unsaved page