Add pagination functionality.
Page cannot be more than page count. Per page cannot be zero.
Use partial for pagination.
Change page to currentPage. Send more variables to partial. Move escaping to partial.
Replace page manually, not array_merge.
Add pagination test. Cast page count to int.
Merge branch 'pagination' into develop