Updated for Xively and HttpClient