Improve reporting

Make Logger, UsageReport and exception reporting more thread safe. For details see commit messages.
Apparently an existing bug, but surely we should be testing _appNameToUseInDialogs?