Add Mailer class
Fix relative redirection issue
Use Atomik::flash() instead of $this->flash()