etcdserver: refactor ValidateClusterAndAssignIDs
Merge pull request #1736 from xiang90/verify

etcdserver: refactor ValidateClusterAndAssignIDs