Logout fixes
I had to log out, and encountered a bunch of papercuts/crashes along the way.
- Prevent a crash when trying to update push rules and there's no active connection.
- Prevent a crash when trying to update the users in the room... when there's no room.
- Move the "sign out" button in the account editor outside, and make it close the settings dialog when there's one account left.