Minor code cleanups - left from previous patches

This closes #225
[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