Many pages

Adds support for any number of pages. Will attempt to compact the page links when there are more than 7 and keep the links tight at the same size for better UX (when used with the css pull I'm about to send you)