Sign In/Out of multiple apps and instances

- use Visibility API to detect when window become active
- reload page when user token changes

@settinghead please review.