Ability to use environment variables in the config

This commit adds the ability the use environment variables in the config files
which will be replaced at runtime with the actual values. This is especially useful
for passwords.