First stab at refactoring the ooni-pipeline code.

No actually all the variable should just be in env vars. Check the latest diff for a more structured approach to this with the settings module.