etcdmain: add config.go
Merge pull request #1976 from xiang90/flag

etcdmain: add config.go