Add “unread” thread list filter, and refactor the “flagged” filter.

@gwprice
This should probably live in a config file