Misc cleanups
Sits on top of !82 (merged) but that's just the first commit
Motivation for these is that every time I look at ci-templates after a hiatus, I have to page way too much in to remember which file is which. This is largely documentation and shuffling things around to make it more immediately obvious what things do. No changes in the exported templates (other than comments).
cc @bentiss