Add flag for creating a torrent file.

Kind of a crude API, but it works well enough to test.
Moved Close method to file.

Less efficient for the bulk close case, but more like a normal file system.
Calculate pieces for torrent.
Improve piece size choosing logic.

Wrote a test for it and everything. :-)