CRM-13379 js, contribution form - generalise  button double submit protection and add to contribution.main to prevent double submits where people have no confirm page

----------------------------------------
* CRM-13379: Delete mailing from Archived, next page is Find Mailings
  http://issues.civicrm.org/jira/browse/CRM-13379

Conflicts:
	js/Common.js
	templates/CRM/Contact/Form/Task/EmailCommon.js
CRM-13397 js.common also backport js ts function, other changes are only formatting