Use test-and-set to update the store

Resolves #10, but makes it critical to start dealing with errors
returned by etcd (#11)