Simplify main() by moving config parsing into config.go