added error handlers for the connect method, but don't know whether they
are properly set; move the client_request/response.on('error'...) down
to add proxy_request.end(), don't know if this is correct
added two test cases for https proxy