Fix globalUnreadCount when suspended

Implement xmppClient.setUnreadMessages and update contacts unread count
to fix calculating globalUnreadCount when app is suspended. Should
finally fix #4.