Add support for JSON responses

A JSON response will be returned when one of the following conditions match:

- the request includes an "Accept: application/json" header

    $ curl -H "Accept: application/json" http://oneid.io/ronan

- the request URL includes a "format=json" query parameter

    $ curl http://oneid.io/ronan?format=json