autosave

With this new feature the editing draft will be  automatically saved to prevent unexpected data lost.

Note: There's an issue when editing seaf format file, the modal dialog can't be displayed correctly.