CLC-1241 Get count of unread bMail messages

This is a copy of https://github.com/ets-berkeley-edu/calcentral/pull/908 for branch QA.

https://jira.media.berkeley.edu/jira/browse/CLC-1241

Huge thanks to Yu-Hung for the great refactoring work on this.