Improved diagnostics. Closes #311

Logger class now also stores the logs in a file and whenever the user sends some feedback, those logs are compressed and attached.