Changing /messages route to now parse optional param for paging