Utilize the new config class everywhere.

Also, when appropriate, only reveal subset of config to modules.