Consolidate main.go and config.go.