Allow tracker and torrents to be run from tests.
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.

nictuku/Taipei-Torrent,Dataman-Cloud/Taipei-Torrent,Dataman-Cloud/Taipei-Torrent,beni55/Taipei-Torrent,nictuku/Taipei-Torrent,ansonwzj/CPSC416Taipei,beni55/Taipei-Torrent,FlexibleBroadband/Taipei-Torrent,FlexibleBroadband/Taipei-Torrent,ansonwzj/CPSC416Taipei