Add LocalSparkContext to manage common sc variable.

I noticed some duplication in the tests around closing the SparkContext and pulled it into a trait to manage.

I had started this awhile ago, but decided to finish it up when I realized all of the clearProperty("spark.master.port") would be spark.driver.port if I start that down that path. So figured doing this first would be good.