Fix PK changes; update and test foreign queries

Update foreign references to records with changed PK
Improve test coverage for PK change and fix bugs
Add _process_query method to StoredObject to handle foreign, abstract values
Test queries by foreign fields, abstract foreign fields
Merge branch 'develop' of https://github.com/CenterForOpenScience/modular-odm into develop