Reorganise the java samples.

Adds new environments, reorganises java controls. Modifies properties files. Was looking into the java stuff and found it doesn't actually support environments so am working on something for that.

Ran java connections test suite