Added input and output session buffers. Printed status, type and headers of response from socket. Added constants and helper methods from ApacheHttpClient4Handler.