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
use BAO obj not DAO per @colmanw comment
Opps changed wrong BAO per Colemans's comment
Merge pull request #1332 from eileenmcnaughton/CRM-13148

CRM-13148 preparatory cleanup mostly moving js from tpl to js file