JC: rename wfid to batch_num in model and added batch_num to views. Added search/stats to the model. spec passes.