Inject JsonObject into http client.

Using baked in serialization if available.
Minor performance improvements (allocate whole byte[] if lenght is specified on http response).

TODO: convert helper classes to JsonObject
TODO: support for String and Long (which are returned on some APIs)
TODO: support for History<T>