Fixed bugs in mailer. Added headers to prevent e-mail from ending up in the spam folder. Added getBaseURL to the URL parser.