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

@gwprice
No, but it's worth keeping the note in the comment here