repo-updater: Move debug code out of main
Created by: ryanslade
This change moves all the debug endpoint logic out of main which makes it a lot easier to follow the initialisation flow for repo-updater.
Test Plan
Code was only moved around and local testing confrmed that the debug endpoints still work as expected.