[fix] dont crash without a callback in update
Merge remote-tracking branch 'upstream/master'
 * [test] test cases for #108
 * [fix] don't expose _id,_rev,resource on safeJSON
Merge pull request #114 from chbm/safejson

fix safeJSON