Filter and Pagination Functionality

Cleaned up and added filtering and pagination. Pagination uses &pg.
Must remove any non-filter params from URL in get catalog just after
the query explode expression.