Added an event to be fired when leaving the page

Event will be fired regardless whether form was dirty or clean. An
alternative to "beforeunload", since DirtyForms overrides normal
beforeunload event flow.
Merge pull request #47 from underclouds/master

Added an event to be fired when leaving the page regardless of whether form was dirty or clean