CRM-12638, do not use caching table if 'select all' option is used

----------------------------------------
* CRM-12638: Optimize Prev/Next Cache and search interaction
  http://issues.civicrm.org/jira/browse/CRM-12638
whitespace cleanup
whitespace cleanup
CRM-12638, use query instead of cache table if 'select all' option is uses

----------------------------------------
* CRM-12638: Optimize Prev/Next Cache and search interaction
  http://issues.civicrm.org/jira/browse/CRM-12638
CRM-12638, fixed group status

----------------------------------------
* CRM-12638: Optimize Prev/Next Cache and search interaction
  http://issues.civicrm.org/jira/browse/CRM-12638
Merge pull request #1519 from kurund/CRM-12638

CRM-12638, prev/next optimization issues