Updated for 0.8 API methods

@jacobawenger please review if you have a chance
No. We don't have a $$toJSON anymore. But you can still declare a toJSON on any object and it is utilized by JSON (and also by our util method.