[libcontacts] Update name groups correctly

Contacts do not change name groups when contact ordering changes, only
if their details change or the dislay label ordering changes.

Also add a function for attached models to handle the completion of
list synchronization.
Merge pull request #16 from matthewvogt/sorting

[libcontacts] Update name groups correctly