STREAMING-50: Support transform workaround in JavaPairDStream

This ports a useful workaround (the `transform` function) to
JavaPairDStream. It is necessary to do things like sorting which
are not supported yet in the core streaming API.
Merge pull request #466 from pwendell/java-stream-transform

STREAMING-50: Support transform workaround in JavaPairDStream