Got unread updates working, next to pull on read

Updating unread message counts now work. This includes keeping a
register of how many messages were received, who sent them and also the
IDs of the messages in order to highlight or link to them in the DOM.