More work on the HTTP communication between client and server

Signed-off-by: Paul Săpunaru <paul.sapunaru@gmail.com>