Improving offline behavior.

Now it sets the note state locally so that when you are in offline mode
the map and the list correctly reflect the state of the note.
Fixing rendering of reopen actions in the offline queue.