rename_entry(
ctx,old,new) ->stale,err
Move an entry to a new key
Meta and index scores move with the entry. Links are not rewritten: on success the count says how many entries still link to the old key.
The history does not move. Its events stay under the old key, and the new key starts with none.
The entry is written under the new key before the old one is removed. A rename that stops part way leaves the entry under both keys.