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.
Add a new findById DAO method.

We have found it very useful to have this simple function, which retrieves a
DAO object of a specific type by ID or throws an exception if one is not
found.

This can be called by using something like
CRM_Contribute_BAO_Contribution::findById(35), which will retrieve a
Contribution Object for that id, if it exists.
Add unit test for CRM_Core_DAO::findById().
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