http-client: run the event loop after sending all requests
fix memleak (media type parameters)
fill the peer host/port fields of client connections
implement asynchronous client connections
http-client: add a connection closed hook