[JAVA-1390] Phase 1: cleaning up the current build. Correctly separate unit tests and functional tests.
[JAVA-1390] Phase 1: cleaning up the current build. Got rid of legacy folder for tests - tests were either moved into unit or functional, and some tests were cleaned up in the process. There's not enough time to clean up every test, but they have been separated into the correct places and some effort has been made to identify which need more work.