Added method to check if the request header was received
get_response now specifies the length of the returned string

Added an int* parameter which if not NULL will be set to the length of the returned string
Refactored worker.c

Moved request handling to another method

Added timeout to request handling (so an idle connection will not lock up a worker)

Added error checking for socket closing because I noticed sockets weren't always being closed properly