allow global environment substitutions in any config section

closes #560
Merge pull request #560 from apmorton/issues/560/socket-env

environment variable for socket port