Run unit tests as part of torrent test.
Improve filesystem abstraction

The "Close" method is now part of the filesystem, not the files.

(This lets a filesystem do a bulk flush operation if it needs to.)