Compiles now, time to test
Some refactoring changes
Refactored TorrentProtocol a bit, also fixed error in TorrentClient
merged in blockWriting branch
Fixed some more compile errors