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

This is another implementation about #1256
cc @andrewor14 @vanzin
Can you put the filter and the foreach on separate lines to make this more readable
```
properties
  .filter { ... }
  .foreach { ... }
```