Packing lot of request in one request

HTTP request keeps sending more data in the same request
Splitted send and receive on daemon

Daemon does not send and receive on the same operation anymore. This
make the data transfer waaay faster.
Duplex communication with HTTP server

Two threads keep comunicating with HTTP server, one just sends data and
the other just receives data. The receiver keeps the connection alive
for a lot of time to reduce time.
Also, removed all busy waitings (because they were making things slow)