Reworked some of the API to return unread message counts.