Add better Mac keyboard support. Fixes #254.
Add autosave at intervals and on blur. Fixes #243