Added profile to run testsuite with jdk6
ISPN-3583 Add optional infinispan-query.jar to org.infinispan module so query config validation can work

Also remove sample-domain-definition dependency which is not used directly
Create an abstract class for REST client tests