Initial support for Cross, Join, and CoGroup for new Java API

Gives support for cross, join, and cogroup. Some bug fixes.
@markus-h and my contributions of last week's hackathon.

@StephanEwen: Please double check the PairComparator implementations.