More refactoring to main

Factor out more pieces of main.py to make it more modular. Update telemetry.py to use Pydantic for arg parsing so it parses args consistently with commands like run.

Merge request reports

Loading