Add main.py. Split config into a separate module. Clean up the mess.