Login/logout handling

Automatically goes to game panel or login state whenever the authorized
state is determined/updated.