MAJOR house cleaning

- since the build changed to gradle, I thought I would make nice
- changed directory structure to src/main/java
- organized tests and functional tests better, still needs work