mail fixes and changes

Added: redirect from mail page depending on end result

Added: lots of comments

Fixed: errors not displaying to users correctly

Fixed: Clean_string being defined twice. The one for checking URLs is
now clean_input(). clean_string() is for mail.php only

removed: mail_to_admin() and returned it to mail.php