[ADD] FPNR-307, Implement loginByToken for WebRTC.
Minor refactoring of loginByToken functionality.
Merge branch 'wsc' of github.com:flashphoner/flashphoner_client into wsc