Added resource for thread pagination.
For the thread entity refactoring.