[#19, #21] Implement toJSON compatibility
Add "test" script to package.json for running tests using `npm test'
[#19, #21] Implement recursive toJSON compatibility
Version bump v0.2.0