Move job formatting code to a class.
Add wait-jobs command.