Implemented note.edit and fixed some bugs.

-> Only store the int ID of the notes temporaly and not
   in the JSON file directly.

Signed-off-by: Stefan Tatschner <stefan@sevenbyte.org>
Added a revision attribute to Note.

The revision is incremented after every edit action.

Signed-off-by: Stefan Tatschner <stefan@sevenbyte.org>