Move Java/Scala files to standard locations

- use Maven/sbt directory structure
- small fixes to make sbt happier (Scala/Java joint compilation)