Adds custom event to signal changes in memberships. Fixes #1