Errors should be printed to stderr...
Added a progress stats for spans. (supports both bin and bed a.t.m.)
Added some tty detection to the shell stub so that we only write logs if
stderr isatty.

I'm particularly proud of this hack.