Added JSON responses.

If a ClassHandler has a slot with a QJsonObject return type, the
response to the client will automatically be handled.