Improve reporting

Make Logger, UsageReport and exception reporting more thread safe. For details see commit messages.
Right. And not even with whitespace issues although it's included in that commit. Oh well...