[libcontacts] Name grouper fixes.

Allow grouper to override default set of groups. Ensure
returned group is in the valid list of groups.
Merge pull request #51 from mbrasser-jolla/master

[libcontacts] Name grouper fixes.