Add API + tests for Swarm

`FlagParameter` not used