CRM-13148 Support use of cid=0 and cid=NNN for online contribution pages.

----------------------------------------
* CRM-13148:
  http://issues.civicrm.org/jira/browse/CRM-13148
CRM-1311 Improved inline help for Honoree section.

----------------------------------------
* CRM-1311:
  http://issues.civicrm.org/jira/browse/CRM-1311
Merge pull request #1330 from eileenmcnaughton/master

test fixup- changed fn signature doesn't expect 'NULL'
Merge pull request #1327 from davecivicrm/CRM-13111

CRM-1311 Improved inline help for Honoree section.
Merge pull request #1326 from davecivicrm/CRM-13148

CRM-13148 Support use of cid=0 and cid=NNN for online contribution pages...
Cleanup membership api
Merge pull request #1168 from eileenmcnaughton/CRM-13059

CRM-13059 fix relationship killing query
Membership API date calculation CRM-13153

----------------------------------------
* CRM-13153: Improve Membership API to calculate dates
  http://issues.civicrm.org/jira/browse/CRM-13153
Merge pull request #1331 from colemanw/memberApi

Membership API date calculation CRM-13153
fix api wrapper as CRM_Core_Exception fatals on the PEAR exception getUserMessage despite extending that exception
unrelated fix to broken test set up on BaseIPN
CRM-13148 basic tidy up - use 'recommended' functions / tpl js separation
CRM-13148 partial move of js functions out of the tpl into the js file
unrelated e-notice fix
CRM-13148 minor tidy up - remove smarty from js
unrelated e-notice fix
CRM-13148 preliminary cleanup - move rest of js out of tpl