Added ability to get unread count directly from focused tab. Also some general cleanup before release.