WIP: implementing edam sync algorithm (http://dev.evernote.com/media/pdf/edam-sync.pdf)