Fix the bug in CRM_Mailing_BAO_Mailing::add() where the DAO was being instantiated instead of the BAO, as later the create() method expects it to be BAO having getRecipients() method towards the end.
Fix returning to a smart group search after adding an activity.

The previous fix for this did not include the civicrm/group/search url
in the list of possible urls to return to; thus smart groups were still
broken for this workflow.

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
CRM-15454 - Enable multiple WordPress plugins to receive callbacks from CiviCRM hooks
CRM-15431 - CRM_Core_I18n - Use CRM_Core_DAO::escapeString for typical, runtime escaping

The call from CRM_Core_I18n breaks on systems that use "mysqli" without
"mysql." Such systems cannot be fully supported for development using
current dataflows (i.e.  "GenCode" won't work), but this patch may make them
usable for regular installations.
CRM-15474 - Move js-based form alterations to php
CRM-15524 - Support addSetting in snippet mode
CRM-15427 Additional Fixes

----------------------------------------
* CRM-15427: Profiles using Participants (Event type), Participants (Event Name) and Participants (Role) custom fields are not available for online registration
  https://issues.civicrm.org/jira/browse/CRM-15427
QA Fix
Additional QA Enhancement
CRM-15524 - Support adding scripts, styles, etc to page header/footer regions in snippet mode
CRM-15524 - Add 'ajax-snippet' region
CRM-15524 - Move static js resources to the html-header region so they don't reload with ajax page refreshes
-- CRM-15475, Retrieved value for membership status id regardless of civicrm_membership_status.is_active field

----------------------------------------
* CRM-15475: Fatal error on membership page if membership status 'Cancelled' is disabled
  https://issues.civicrm.org/jira/browse/CRM-15475
-- CRM-15475, Used Contribution status Pseudoconstant to fetch id rather then using getfield value function

----------------------------------------
* CRM-15475: Fatal error on membership page if membership status 'Cancelled' is disabled
  https://issues.civicrm.org/jira/browse/CRM-15475
-- CRM-15475, changed Cancelled mmebership status to reserved

----------------------------------------
* CRM-15475: Fatal error on membership page if membership status 'Cancelled' is disabled
  https://issues.civicrm.org/jira/browse/CRM-15475
-- CRM-15475, Added upgrade code to make Cancelled status as reserved

----------------------------------------
* CRM-15475: Fatal error on membership page if membership status 'Cancelled' is disabled
  https://issues.civicrm.org/jira/browse/CRM-15475
CRM-15556 fix - Checkbox custom field error of OnBehalf profile on online contribution's confirm page

https://issues.civicrm.org/jira/browse/CRM-15556
Merge pull request #4440 from colemanw/CRM-15524

CRM-15524 - Support adding settings, scripts, etc in snippet mode
CRM-15524 - Avoid loading profileSelector scripts in ajax mode
CRM-15346 - pass more specific context to Drupal.behaviors