Add Study/StudiesResource
Implement Study::getPatients()
Solve domain class clash with tsApp
Add Study::getName() & test refactoring
Implement PatientsResource
Add equals() and hashCode() to some domain classes

This is just to suppress the error on startup. We don't actually need
those methods because we don't put those domain objects in sets.
Add i2b2_trial_node view and fix study case issues

Taking the ontology term name as study name was not correct, because
study names transform that name into uppercase. Consequently, some
conversions to uppercase were added at some points.

i2b2_trial_node is a new view that links concept full names in the i2b2
table to study names. Only the top nodes are included.
Fix mapping of patient_trial
Fix n+1 query
Merge remote-tracking branch 'origin/master' into issues/UAT-136-map-log-intensities