Additional specs for remaining cylon-spark functions
Refactors and general cleanup to spark.js