Numeric Pagination

Instead of just displaying "next" and "previous" this adds in the page
numbers. Fix included to work with custom posts.