http client callbacks: separated the concerns of actually invoking the
callback methods from the invocations occurring during state changes
tcp socket: collect some stats about the messages sent or received
http client: fixed a bug where the final state of the request could actually
not be initialized, preventing the invocation of the relevant operations and
callbacks
HttpResponseParser: refactoring of request finalization
http client: style fixes