[DEV-1740] Add GroupMembershipManager from upstream master.