main: retrieve config from env vars
main: add test for setting flags
Merge pull request #1040 from jonboulle/1040_config_env_vars

etcd needs to be configurable through env vars