consolidated page browsing code; updates #262

and
- fixed page browser display on search results page for last four pages
- set max. page count on all other pages to 15 (from 9 or none)