Changes to login and mail systems

I've created some changes so that the email system would work in Tomcat.  It took a lot of files that I needed to copy, and I'm not sure if I copied too much, but better safe than sorry.