Add tests for person/org memberships

Make sure that memberships are populated correctly when they are
returned from the API.
Document the membershipFinder mongoose plugin
Refactor membershipFinder mongoose plugin

Use explicit variables for the Membership model and the current schema's
modelName to make the actual query we perform a bit clearer.