removed away some bullshit code from the client-side router stupidly copy-pasted from the server-side router
refactored getting auth tokens by asking user-password - now event is eventually triggered when tokens are available.
That fixes bug with freezing page (empty page) after logging in.