throw event on user login/logout and other actions. Fix #236