In the light of the dicussion at #21 (comment)
We may want to review the use of the last_heads concept inside note_changes(see current WIP), because it can lead to races conditions between saving and sending out sync messages or waking up change observers(see process_changed_documents.