client/analytics: track login success/failure
client: force login if invalid token/id in localStorage

I probably did a login with new client and old server. This is very
weird, as the update happened in a single commit and server is restarted
during deployment.

Anyways, it happens to me. It could happen to other users, even though
it’s very unlikely.