replaced the old and deprecated http.createClient by http.request and also added a statusCode (200) response control
replaced the log with the callback response
Merge pull request #5 from hguillermo/master

Update the deprecated http.createClient and other fixes. (Thanks hguillermo!)