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

Does the order of registering these classes matter? Here we're not preserving the order set through `spark.kryo.classesToRegister`, but maybe that's not important.