Initial changes for better logging and error tracking
Merge branch 'feature/LILY-468-proper-debugging-mails-and-logging' into develop