Adds promises as a callback mechanism for http requests.
fix for error when promise library is missing as well as calling the failure handler when the http status is not 200
rspec for promising http client spec.