Added Xively response logging to agent.