[libcommhistory] Fix ContactGroupModel merging when contacts change

Groups in the model would not be merged when contacts were changed,
which broke the grouping when contacts are resolved asynchronously.
[libcommhistory] Remove unnecessary and verbose debug from ContactGroupModel
Merge pull request #28 from special/contactgroupmodel-fix

Fix ContactGroupModel merging when contacts change