Possible fix to OOM errors while printing reports.  Don't dump the entire thing to a string first.
Clean up some bad references to threads, the now-gone promise, and start/end dates in report