make the server side code more modularized
further cleaning up
unfinished handler for CONNECT method
trying to finish the https proxy server, but getting Parse Error
need to find the problem of parse error at Socket.socketOnData (http.js:1367:20)
    at TCP.onread (net.js:403:27)
fixed the parse error: forgot to add path to the req options (then the req will be like 'CONNECT /')
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
remove proxy_request.end() form the error handlers in connect_req_handler; and fixed the function name..
add more error handlers?
Merge branch 'connect'