adding .each(callback)
Merge branch 'ds-refactor' of github.com:pubnub/javascript into ds-refactor