Add pagination data structure

I have created a pagination data structure to deal with the code
modifying the DOM.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>
Implement page swap and class toggling for anchors

This commit implements the actual page swap. The visibility attribute
cannot be used since the space would not shrink. Currently, the selector
of the view to display and anchor to swap the page is stored in the data
structure.

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