Memberships

Adding the new memberships API.

@aq1018 @mjuhasz