CLC-1241 Get count of unread bMail messages
https://jira.media.berkeley.edu/jira/browse/CLC-1241

Huge thanks to Yu-Hung for the great refactoring work on this.