SITE-975: Updated query generators to support submodel queries by their ref field

- Querying submodels uses a mongo-like dot notation to target specific
  submodels
Merge pull request #8 from beum/SITE-975

SITE-975: Updated query generators to support submodel queries by their ref field