Implement cleanup of pending notifications on startup, and remove chats properly
This will fix the wrong number of unread messages if a chat was left without reading everything. Also it removes a chat from the messagemodel when it has been left, we overlooked this for years. This will close #190 (closed)