merging in the serif extractor stage from old internal version of
pipeline.  This includes improving the tests run as shell scripts
executed by test_pipeline_run