Add stats-job command support.

As requested, I've isolated this change in its own branch.