Work on paging has BEGUN.

Some global variables added for keeping track of the last search term
and current page.