E-Mails and HCO

Finished and tested hosted checkout support.

Added e-mail notifications, tweaked existing forgot password e-mail.
Some fixes still needed (background colour or new logo with outline
around light-coloured lettering).

Added a convenient to_int function to utils.php.

Tweaked the email class.

Tweaked the templating engine.