intermediate working version
saving work
Merge branch 'feature-pt74838232-3' of github.com:pubnub/javascript into feature-pt74838232-3