Implement pagination for search (back end)
Refactor search
Merge branch 'search' into develop