Add code from iroh-smol-kv, streamplace branch and adapt


Author Ruediger Klaehn Date Commit Parent 6a1f375e