Use environment variables in CLI configuration json file

When using cloud environments like Heroku, it is often convenient to specify configuration options via environment variables. This change causes the command line to replace all string values starting with `'$env.'` in the manifest document with the corresponding environment variable value. This makes it possible to do things like configure plugins that are loaded as part of the pack via environment variables.