Expand environment variables used as configuration values.
Move variable expansion code to the generic configuration API.
Provide example usage of variable expansion.
Check SCCalloc return value; use strlcat instead of strncat/strcat.