config: remove deprecated flags
etcd: make config a self-contained pkg