Add `copy_from_cursor`

In order to implement 'optimize' within OCaml/Arakoon, this PR adds a function to somewhat-efficiently copy key/value-pairs from one database to another, in slices if required.