Add Custom Mailserver and Error Report to amc Script

Two major changes:
  1) Abilty to specify a custom mailserver with
     mailhost=mailhost:mailport:to:from
  2) Ability to send out email on error with
     reportError=true