Log raw JSON messages/responses rather than Ruby-parsed and inspected

This allows problems to be more easily reproduced and also allows for
the logger output to be programatically parsed (by languages other than
Ruby).