Login and email system changes

A lot of these files may be unnecessary, but I didn't have time to figure out exactly which ones.  I can do that later, if need be.