Added private and unread messages logic and pages.