add .toJSON()

adds `req.toJSON()` and `res.toJSON()` to log requests and responses easily, closes #438.

cc @gjohnson