Add support for `toJSON`

This brings `jsesc(data, { 'json': true })` closer to `JSON.stringify(data)`.

Fixes #17.
Update dependencies