Modify logic that extracts change events to be tracked

Solr needs CMIS objects as is.
So leave simply only the latest events of each objectId.