Update Participant.php

Removed 3 instances of assignment in if operators. This is ambiguous and against the Civi coding standards.
Refactored ParticipantListing.php

1) Commuted assigns in if statements into assigning, then checking, as otherwise fails code validators and breaches CiviCRM coding conventions.

2) Refactored repeated code found while repairing those errors into a separate reusable function that accepts parameters. I only did this where the code was identical. Where there was any distinction I didn't do this to prevent introducing bugs.

https://issues.civicrm.org/jira/browse/CRM-14434
fix inconsistent return value from fn
putting this in the queue when I remember as deep in something else but it fixed a fatal on off-site payment processor
CRM-12370 - add extension modules immediately after civicrm drupal module.

----------------------------------------
* CRM-12370: CRM_Utils_Hook::requireCiviModules() assigns infinite weight to extensions
  https://issues.civicrm.org/jira/browse/CRM-12370
CRM-15036 - force emailed social media image URLs to use HTTP.

----------------------------------------
* CRM-15036: Social media image URLs should always use HTTP in emails
  https://issues.civicrm.org/jira/browse/CRM-15036
CRM-15056 - Workaround for civicrm_worldregion bug in search builder
Merge pull request #3752 from colemanw/wr

CRM-15056 - Workaround for civicrm_worldregion bug in search builder
CRM-14912 support import matching with external ID
Merge pull request #3691 from eileenmcnaughton/master

fix inconsistent return value from fn
CRM-13912 - fix accordion header for SMS Message body.

----------------------------------------
* CRM-13912:
  https://issues.civicrm.org/jira/browse/CRM-13912
Merge pull request #3770 from davecivicrm/CRM-13912

CRM-13912 - fix accordion header for SMS Message body.
CRM-15041 fix - View Event Registration / Change Selections : Total Paid and Balance are incorrect after a contribution is recorded for Pay-later registrations

https://issues.civicrm.org/jira/browse/CRM-15041
Improve 'restore menu' button
Merge pull request #3772 from colemanw/menuRestore

Improve 'restore menu' button
Additional profile select box fix in Manage Event Page
CRM-15068 - Add api support for custom file fields
Merge pull request #3775 from colemanw/file

CRM-15068 - Add api support for custom file fields
Update Contribution.php

Fix regression that was causing Event Resets with Offline Contributions to be garbled.  Detailed in CRM-15069
Merge pull request #3774 from jitendrapurohit/CRM-15063additionalprofilefix

Additional profile select box fix in Manage Event Page
Re-add case_type pseudoconstant to schema