Adding default json protocols
Add wrapWrite for top level objects and fix some bugs
Add some tests
Update readme.