Enterprise form confirmation

Adressing BugHerd 1184.

- Makes the navigation callbacks executed when leaving the page (not on load)
- Makes the leave confirmation work in WebKit browsers
- Asks for confirmation only if the form was changed