Revamped the client part of the Java backend (demo-tested on server). Tests not included.

Change-Id: If042fa82b9ed4a2bf64be249c4b6927129778959
Added tests for the final java backend.

Change-Id: Ie0e961dfbf6f27e2ae9fa85279c7ed52cf4ad905
Merge "Revamped the client part of the Java backend (demo-tested on server). Tests not included."
Merge "Added tests for the final java backend."