Convert groovy to java: OpenShift and Whirr

Also (unrelated!) fixes sandbox/dropwizard to use rest-server rather than rest dependency, because latter no longer exists.