Implemented Send_request and Send_response options for http.

Also started to unify the module interface and reduced the globals
pollution. Baby steps.