Redirect mocha stderr to stdout to avoid issues with vim.
Added a shortcut to setOption on coap.request().
Added example using JSON.
Accept res.code.