Implemented privacy rules for affiliations.
Made adding affiliations via the member API more efficient, by only
writing new affiliations to the DB.