Added a state system for TorrentTransfer

Changed target framework to 4.0 Client Profile to maximize compatibility
Done a few changes necessitated by migrating to a previous framework
version