[FLINK-1139] Added FinalizeOnMaster hook to run code after the last task of an OutputFormat completed
[FLINK-1139] Fixed HadoopOutputFormat to run with DOP > 1