refactor command.go: commands do not rely on the etcdStore singleton. So we can seprate command into a package in the furture.