SPARK-1813. Add a utility to SparkConf that makes using Kryo really easy

Can you use this style
```
val reg = conf.getOption(...)
  .map(...)
  .getOrElse(...)
```