Update the configuration to support composition.

Also fixed dynamic dispatch of config values.

closes #12