[WIP]SPARK-2098: All Spark processes should support spark-defaults.conf, config file

This is probably a little more efficient:

properties.entrySet().map(e => (e.getKey().asInstanceOf[String], e.getValue().asInstanceOf[String].trim()))