Add confirmOnExit directive

Usage: <form ... confirm-on-exit></form>
Prompts user if they try to leave page and form is dirty.
Optional message: confirm-on-exit="message"