Refactored client http request method

The http.createClient method was deprecated, so i rewrote that part of the code. should fix my issue https://github.com/dmcquay/node-apac/issues/30