Upgrade to Spark 1.0.2
Add JSON writing to Spark

Improve tests
Still need to add docs and sort out the Java type erasure
Fix incorrectly generated bytecode bug by using stricter declaration