Backup/Restore Workspace and newNoteId fixes

- backup to file and restore via cut-and-paste
- updateNote assigns new id if note doesn't have one
- updateNote saves note if it is a new one
- fixed users of getNewID and saveNote