Set user when online
Merge branch 'api' of https://github.com/webim/webim-ui into api