Add private flag to UserGroups

Closes #355
Merge pull request #364 from edpaget/private-groups

Add private flag to UserGroups