CompareAndDelete with retry.
CompareAndDelete with retry.

- Change the CAD api to retry on a few errors.
- Add ErrStreamDrain to thelist of errors we retry on.
- Clean up few switch statements and collapse them.

portworx/kvdb