bugfix for #49: count unique old members in groups
fixed #41: invalidate roles and posts when
* change membership to old state
* set delete=true in the membership