CRM-14813 Online event rego receipt - no credit card details shown

Fix contributeMode, munge credit_card_number, and format credit_card_exp_date.

I'm not sure that $template->_tpl_vars is the best or the standard place from which to retrieve the contributeMode.

The editing of the credit card number and expiry date are replicated from the equivalent CiviContribute code.