Use embed parameter on collections and search endpoints

Switch to using the 'embedDocuments' method, which in turn calls
'populateMemberships' but respects the ?embed parameter.