Fixed paging on show for advanced search. refs #633

- Added tests for paging on show but there is a problem with
  next and previous links not being rendered on test pages, so
  some of the essential tests are commented out for now.
- Overridden setup_document_by_counter to intercept advanced searches
  and add nested queries to solr query.
- Refactored building of advanced query so it doesn't actively modify
  params but rather just returns a hash to be merged in to whatever
  other hash should be sent to search.