Add normalize_config() and --dump-config.

Build "dump the configuration" into the library, don't make applications
reimplement it.  Add a hook so that applications can do things like make
filesystem paths absolute as the last thing that happens before the
configuration is returned.