Constrain memberships to uniqueness

Add constraint on (user, team)
Merge branch 'feature/133-dupe-memberships' into develop