Moved alot of stuff into SparkContext init