Spark Integration: Collect System Metrics from Spark Job

Build running here: https://builds.cask.co/browse/CDAP-DUT176-5

@anew : Please review. Thanks. 
It's better not to pass an opened `Writer`, but rather a `Location` or `File`. In general, don't pass opened stream/reader/writer around.