Use our own JSON encoder

The goal of raven is to report exceptions. By introducing our own tuned version of OkJson that coerces values to a serialisable state we can guarantee that a JSON is going to be generated.

This branch fixes #97.

It also avoids issues with ActiveRecord's #to_json/#as_json that trigger "IOError: not opened for reading" when serialising an IO.