CSPACE-6333: Add secondary sort on uuid when querying for refobjs and relations containing refnames. Also refactor RelationUtils.findRelationsWithRefName to use RepositoryJavaClientImpl.findDocs.

Conflicts:
	services/common/src/main/java/org/collectionspace/services/common/relation/RelationUtils.java
CSPACE-6333: Move repoSession.save call outside the loop, so it doesn't affect the search results each time through the loop.
Merge branch 'ucb-deploy_4.0' into pahma_4.0