Work on swarm tests.
tweak naming
Allow tracker and torrents to be run from tests.

Now "main" is responsible for more command line flags, because the tests
need to be able to call the library code without using flags.
Allow tracker and torrents to be run from tests.

Moved some flags from torrent library to main, so that the
library code can be called from tests without using flags.