Implement pagination functionality for new code

I have updated the code to work with the new functionality, where the
pagination elements are injected by the JavaScript code.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>
Implement skip to the beginning/end in pagination

With this commit the functionality to jump to the beginning and jump to
the end of pages has been implemented.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>
Implement page range for pagination

With too many entries the pagination becomes messed up with too many
page items. This commit adds a so called page view, where the data
structure keeps track of the current range of pages to be displayed.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>