Made variable declarations consistent.
Minor code cleanup.
Added test to ensure exception is thrown when etcd shuts down during wait.
Removed test logging.
Fixed failure wait timeout.
Throw a better exception when the server sends an empty response.