CRM-13227, CRM-14744: full fix
CRM-15376 - Porting fixes from https://github.com/civicrm/civicrm-core/pull/4233 to 4.5 branch.

----------------------------------------
* CRM-15376:
  https://issues.civicrm.org/jira/browse/CRM-15376
CRM-15452 - ensure dupes not added when no event fee is used.

----------------------------------------
* CRM-15452: When no registration fee is involved, duplicate registration still created for event
  https://issues.civicrm.org/jira/browse/CRM-15452
CRM-15455 - avoid creating dupes and using deleted contacts in test
mailings.

----------------------------------------
* CRM-15455: email tests do not properly replace tokens
  https://issues.civicrm.org/jira/browse/CRM-15455
CRM-14968
Additional Fixes
Merge pull request #4329 from davecivicrm/CRM-15376

CRM-15376 - Porting fixes from https://github.com/civicrm/civicrm-core/p...
Merge pull request #4379 from jitendrapurohit/CRM-14968

CRM-14968
Merge pull request #4361 from jmcclelland/civimail-test-duplicate

CRM-15455 - avoid creating dupes and using deleted contacts in test
Merge pull request #4359 from jmcclelland/duplicate-registration-take-two

CRM-15452 - ensure dupes not added when no event fee is used.
CRM-15484 - Ensure event edit links go to backend
CRM-15484 - Event edit links tpl cleanup
Merge pull request #4385 from colemanw/CRM-15484

CRM-15484 - Ensure event edit links go to backend
CRM-15471 - Clear search checkboxes when choosing 'select all' radio
Merge pull request #4386 from colemanw/CRM-15471

CRM-15471 - Clear search checkboxes when choosing 'select all' radio
CRM-15486 - Fix pager js for non-form pages
Merge pull request #4388 from colemanw/CRM-15486

CRM-15486 - Fix pager js for non-form pages
Merge pull request #4314 from cividesk/CRM-13227

CRM-13227, CRM-14744: full fix
CRM-15493 - Ensure quickSearch uses a fresh qfKey every time
Merge pull request #4396 from colemanw/CRM-15493

CRM-15493 - Ensure quickSearch uses a fresh qfKey every time