Add a lot of stuff to make things (almost work)

The problem now is that the generated classes are not java static inner
classes and so cannot be instantiated during runtime. We need to add to
stratosphere the feature to specify objects instead of classes as the
UDF in a PACT contract.