Pagerfanta / Move pagination out of the Controllers (Actions) and into its own method

Move pagination out of the Controllers (Actions) and into its own method

This branch tries to apply the "separation of concerns" principle to the pagination in fork:

- Don't bind the model (db), view (tpl) and controller (action) together by pagination, but get the whole Collection from the model, and let the controller handle pagination entirely.
- We'll use Pagerfanta to handle the paging (they have really nice OOP way to do so)

Also, this breaks backwards compatibility for modules. I fixed the blog and search modules (as they're the only modules in frontend that are using pagination out of the box)


I did manage to keep some things though:

- Keep the same logic as before, but write it cleaner (for example, how many pages before an ellipsis is used,...)
- No changes to template files necessary
fixed in 646b07fa9abfcf18605bca54b35cdd56032f62a2