First stab at refactoring the ooni-pipeline code.