SPARK-2127: Use application specific folders to dump metrics via CsvSink

Generate an unique app name which is used to create events and metric folders.