replaced http.request with mikeal/request module. Added proxy support.