Persist and restore unread messages
Fixes new message notifications

Would like to remove this logic out of here.
Updates document title on new message