[JAVA-1390] Phase 1: cleaning up the current build. Tests have been moved around and dependencies altered, all with the intention of making all modules follow the same pattern so the build file is much simpler and smaller.