Fiilled out the start/end/event json writing and private data.

We're not using picojson yet but I've included it because it's super
small and awesome. I plan to hand write json objects with a string
stream for now and possibly forever unless some json nerd explains why
that's a bad idea.