Pipeline: move monitoring to its own module.

This is probably enough modularization for now.  The pipeline's now in a
state where I can change the pipeline ID generation code with enough
confidence that I won't be breaking something else.
Bump pipeline version.