Added compare-and-delete.

- CAD prevIndex-checking seems to be broken in etcd.
- Moved client instance to baseclass.
- Directory create can now throw an already-exists error.
- Updated and refactored documentation.