Expand environment variables used as configuration values.
Move variable expansion code to the generic configuration API.
Provide example usage of variable expansion.