Messaging fixes, compatible with server 398
Merge branch 'wsc' of github.com:flashphoner/flashphoner_client into wsc