Add API + tests for Swarm

`exists` and `join` are imported but unused