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.
Log fatal errors for AJAX responses. CRM-15560

If you have a fatal error in an AJAX call, then the error doesn't get
logged to ConfigAndLog/Civicrm.*.log. This is because the logging stuff
happens after the call to CRM_Core_Page_AJAX::returnJsonResponse in
CRM_Core_Error::fatal and returnJsonRespons exits php.
UI text changes
CRM-15642 Modified use location widget to include supplemental addresses 1 & 2

----------------------------------------
* CRM-15642: Unable to select similar locations in Event Location tab
  https://issues.civicrm.org/jira/browse/CRM-15642
few notice fixes during webtest for recurring entities
CRM-15645 Petition email confirmation URL incompatible with WordPress
support for old variable
CRM-15589 - Membership section label mixup

https://issues.civicrm.org/jira/browse/CRM-15589
CRM-15659 - Contribution Thank you page says ' will be processed every 1
week(s)'

Conflicts:
	templates/CRM/Contribute/Form/Contribution/ThankYou.tpl
Merge pull request #4624 from eileenmcnaughton/CRM-15659-master

CRM-15659 - Contribution Thank you page says ' will be processed every 1 week(s)'
Merge pull request #4124 from tohojo/adv-search-fix

Fix returning to a smart group search after adding an activity.
Mass cleanup of docblocks/code/comments
Merge pull request #4627 from colemanw/docblocks

Mass cleanup of docblocks/code/comments
Merge pull request #4619 from jitendrapurohit/CRM-15645

CRM-15645 Petition email confirmation URL incompatible with WordPress
Merge remote-tracking branch 'upstream/4.5' into 4.5-master-2014-12-01-14-40-22
order items alphabetically if weights are the same
use id instead of title