generate unique ids for each annotation on a document, and start tracking if an annotation value has changed