small refactoring on UnreadCounters
Merge branch 'master' of https://github.com/buddycloud/webclient