Cache unread/total message counts.

  This is untested, but seems to be valid.

  This updates #75.