Json serialization

I see that a couple of your commits ended up in my pull request. Hopefully that doesn't break things, I didn't think they'd show up there. Anyway, this is JSON serialization in Actionscript. The reading is tested via MicrotomeTest, I haven't tested the writing.