Fixes conflicts between notifs and friends

- displays unread notifications count, else friends online/playing count
- code cleanup
- popup test