Merges searchPagination and Pagination mixins, furthermore makes them generic.