Remove unused code.
Split logging into dated files. Use milliseconds-from-start timestamps.
Merge remote-tracking branch 'upstream1/master'