Add IndexSet test code, fetch message flags with headers
Add isUnread property for messages, add global unread count and dock badge