Added support for reading API keys from environment variables if present.

    * API keys are now resolved by looking against environment variables as well.
These override any other settings specified in local/app configuration.