Pubnub core 3.4 and proxy fixes