Added pagination of thread messages, also added unread message notifications in the navbar.