Lots of stuff

Added email support, moved email and config to own files.
Moved logger to own file.
Updated settings.cfg.sample with new setting for Email.
Made some minor changes to NMA, now checks if message was succesful or not.