Selective sync for user groups
Only make one db call for groups
Merge pull request #4130 from dimagi/groups-selective-sync

Selective sync for user groups