Revoking token when switching tenant or loging out

Tokens where added to a list which was continuesly growing after each project
switch.
When session storage is configured to use signed cookies, this was leading to
having cookies growing above the 4KB limit.

Change-Id: I636ee34546a3a2bc59ae727cf8b1b64cd816e867
Closes-Bug: #1227754