JS user events moved into router

JS user events moved into router because it's more suitable place
for that. Fixed bug with password setting for new user.
Post events replaced with router actions