Introduce ObjectDatabase.CalculateHistoryDivergence()

Fix #562

 - [ ] Review
 - [ ] Xml documentation