Add page numbering option to .collate files [finishes #78234732]

- Move test helpers into test
- Add delete outfiles helper
- Update lesson plan generation documentation
`system 'bash', '-c', command`