Adapt to changes in core-api/7035fb6

The property c_basecode in i2b2 metadata tables now backs a public
property in OntologyTerm called 'code'.
Change QtPatientSetCollection domain class

– Added 1-many relationship for patients
– Changed property name for many-1 relationship to QtQueryResultInstance
  (it's now called 'resultInstance')
Add guava as a compile dependency
Added ref to patient set coll from result instance

Also added sorting to QtPatientSetCollection.
Add PatientDimension domain class

Corresponds to table i2b2demodata.patient_dimension.
Add high dimensional domain classes

Only those required for aCHG queries.
Integration tests for domain classes just added
Add implementation of DataQueryResource
Fix test randomly failing
Fix h2 some tests by creating deapp schema
Fix QueriesResourceServiceTests on h2

Also flush before running SQL query; do not flush on the test. This
flushing is generally needed before running the SQL so we might as well
add it to the service.

With the addition of a relationship in QtPatientSetCollection to
PatientDimension, hibernate creates a foreign key. Therefore, we have to
add the patients to patient_dimension otherwise inserting into
qt_patient_set_collection will fail with a foreign key constraint
violation.
Patient reference is not mandatory in Assay
Fix test in H2

I don't know why, but the save is not cascading when I run the tests in
H2. Possibily caused by another change in the mean time.
Remove unused field