Issue #4: Initial (still somewhat broken) support for multi-segment xfers

This has improved transfer speeds in my tests significantly (up to 3x).
There still appears to be some issues in finishing the transfer, but
this feature is close.
Issue #4: fix some bugs that prevented thread halting of download
Issue #4: Final changes for a functional multi-segment downloader
Merge branch 'multi-segment'