[yanan] fix the issue which could lead the mobile version webapp doesn't act the same with web version
[yanan] refactor the user's userinfo/login/logout module and fix several bugs, add the limitation that user cannot logout when offline