register service information into etcd.
update README.
refactoring.