Warn the user when the save fail 

and if they attempt to leave the page without saving.

I have been unable to reproduce note losses bug ( #10 ). They are probably linked to some edge case and not warning the user when something go wrong. This PR should at least warn the user when he gets into an edge/error case such as connection loss.