Fix a bug in the evbuffer JsonObject constructor.

We were always reading the first chunk of the buffer, so in the case of a
fragmented buffer, it would not work correctly.

Added a test, as well.
Convert HTTPLogClient to use libevent.

This removes the dependency on libcurl.