Refactoring to better separate checks from send_request
Recording of requests using BaseHTTPServer
Unnecessary truncated last symbol of header's name
Now response is returned to client as it should be
Added delaying between requests
First merge, painful and ugly.