remove unused imports from PairRDDFunctions
minor fixes and Java API.

punting on python for now. moved aggregateWithContext out of RDD