Add API + tests for Swarm

Do we actually want to have this as an input parameter? I'd suggest to force the de-replication always.