Preliminary testing showed a few bugs, but they're fixed. Will test in full later.
Assorted other bug fixes.
Removed LoggerThread as it was never meant to exist in the first place.