main: move server configuration to etcdserver package