Save notes with ajax, autosave

Autosave every 30 seconds, save asynchronously when clicked.