fix KryoSerializer NPE.
Merge remote-tracking branch 'upstream/master'
create new SparkConf instead of use SparkEnv.get.conf which would throw NPE in test suite.
Merge pull request #245 from ChengXiangLi/master

fix KryoSerializer NPE.