frontend work
Moved email settings to config files, probably some other changes to boot.