handle httparty response properly

HTTParty doesn't return json anymore, but a HTTParty::Response object.