Checkpoint for text asset autosave

Save text assets when the user leaves the editor and try to properly
roll-back when the user clicks the "Cancel" button.

Addresses #848