Remove unused code.
Split logging into dated files. Use milliseconds-from-start timestamps.