Prevent begin_session=1 & token_session=1 races
Merge branch 'messaging' of github.com:iartem/countly-sdk-ios into messaging