warn in leaving edit mode if unsaved changes

Ticket

+commit
 

 

Whether by browser action or clicking another tab, closing the card, any other ways we leave Edit mode?