Refactoring the JPA code so that the Scala side can provide different
implementations of the Java code that can handle the Scala-specific
functionality. Also starting to implement join() on the Scala side and
tuples.