Implement retry of ensure_index.
add_credential returns False on DuplicateKeyError now
comment
Implement VCCSSoftHasher, suitable for tests.