[feature/pagination-class] Remove pagination functions

The functions where changed in 3.1 anyway, so we can just delete them
[feature/pagination-class] Add service definition
[feature/pagination-class] Replace pagination in viewforum.php with class