Add the request node library.
Move from http to request. Improve error handling to handle no response from api.