Fixed the deadlock of java exec by draining output and error streams.
Final commit for MS3. All basic functions put/update/get/ecs working on
my machine. Tested with different numbers of servers.