app should log out gracefully when stored token got invalidated externally
d095c59d added logout on deletion of the currently used token, but we still need to check for 401 everywhere we do backend queries and logout if necessary, because the currently used token could be deleted from another instance of Copyclient.