Ask before quitting a page with unsaved changes

Prevent unwanted data loss.

![capture decran 2013-07-22 a 22 39 46](https://f.cloud.github.com/assets/57224/837806/06ab1534-f30f-11e2-80b1-80215d1bccc0.png)