Upgrade PubNub SDK and add state read