Add API + tests for Swarm

`getsize` is also unused