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

This is good, but it will be more useful to actually try to serialize these with Kryo after registering and confirming that it doesn't break