main: Add configuration infrastructure.