CLI: Support a maxErrors option to limit the number of reported errors (fixes #664, fixes #238)

I started on #664 and remade this to be simpler and non-static.
> So this would not come up if user doesn't use TTY?

You mean browser version? If so, we don't even include reporters there. Users are free to implement their own reactions.