WIP index-pack replication

Signed-off-by: Thomas Rast <trast@inf.ethz.ch>