Statistical profiler using errortrace.

Also minor cleanups elsewhere.

@rfindler: can you look at DrRacket changes?

@mflatt: thoughts on the changes to errortrace?