move all the things into lib/SparkLib

Well, except the README.