[libcontacts] Simplify name group determination
Merge pull request #22 from matthewvogt/name-group

[libcontacts] Simplify name group determination