Fixed issue with redirection after logout.

* listening to the logout event is no good, since it seems to be
  fired all the time. Instead, wait for the user object to update
  and redirect the user to wherever, afterwards.