Slowly closing loop on email handler. Fixed some bugs due to stray compiled modules. Tested unit creation and file upload.
Added separate IMAP/SMTP config. Debugged mail exchanger.