refactoring
Merge branch 'ds-refactor' of github.com:pubnub/javascript into ds-refactor