Add pagination on the backend for messages
Add pagination control to the conversations index page. Fix #768