[libcontacts] Add a grouping property configuration

Allow grouping policy to be configured independently from sorting
and display label order.