Remove unnecessary dependencies from omod
Fix poms to explicitly exclude xml-apis from openmrs api projects in both jar and test scopes.  This should not be needed but maven 3 is including them for some reason as compile.
Expand handling of constraints against id sets, in order to best take advantage of mysql 5.6 performance improvements while also support efficient queries in earlier versions.
Add additional checking to ensure that no more than one id set is added as a constraint, as this leads to the best performance on mysql 5.5. Also, consolidate logic for checking against multiple id sets in an evaluation context.
Fixing dependency issue by re-including xml-apis as provided from openmrs, and excluding dom4j from poi-ooxml