CRM-14438 and CRM-13996 fix to populate prev/next cache when sorting in advanced search using profile search view

----------------------------------------
* CRM-14438: Can't select contact records from custom search profile when sorted by Current Employer
  https://issues.civicrm.org/jira/browse/CRM-14438
* CRM-13996: Advanced Search; Sorting of Results displayed in a custom profile fails and Advanced Search must be reset
  https://issues.civicrm.org/jira/browse/CRM-13996
CRM-14356 - CRM_Core_Session - Handle Drupal's lazy sessions

This is Ken's original patch from
http://forum.civicrm.org/index.php/topic,31800.msg136249.html
CRM-14356 - CRM_Core_Session - Guard against unset value
Merge pull request #2883 from totten/4.4-lazy-session

CRM-14356 - CRM_Core_Session - Handle Drupal's lazy sessions
Merge pull request #2869 from kurund/CRM-14438

CRM-14438 and CRM-13996 fix to populate prev/next cache when sorting in ...