Fix ContactGroupModel merging when contacts change

Groups in the model would not be merged properly when contacts were changed, which broke the grouping when contacts are resolved asynchronously.

Also, removed a bunch of unnecessary and verbose debugging in ContactGroupModel.

There is currently no unit test for ContactGroupModel, which needs to be fixed at some point.