filterWith to accept FuncWithInitialize instead of two different Functions for init and process.
changed other javaApi like flatMapWith and foreachWith to accept just one **WithInitialize
Addressed Patrick's comment as this patch is targeted for spark 1.0