Replace prawn's page numbering with own impl

It is not really possible to position the page numbering properly in
prawn. This own implementation keeps a record of all page numbers for
every layout configuration