Upgraded to gradle "application"s

You can now 
* simply start the Java clients with "gradle run" (then it connects to localhost:9000, or specify other server params as gradle properties)
* Build small command line applications out of it