etcd: move main logic to etcdmain subpackage
Merge pull request #1417 from jonboulle/master

RFC: move main logic to etcd subpackage