Added KMeans Java examples using the broadcast variables API.

Added KMeansIterativeBroadcast Java example.
Added KMeansSingleStepBroadcast Java exampe with integration test.
Added support for extra inputs to RegularPactTask and TaskConfig.
Added integrated test case for broadcast variables.