Get the configuration template to generate a clean configuration.

The templates is still pretty complex, but at least the configuration
file that get generated is well formed.