Refactored log handling
File uploads via E-Mail now work
Send error mail when mail upload fails