Refactor note.

Refactor the Note class to use JS properties.
Make titles editable.
Change the saving policy: we now save changes only after some seconds.