Tested TorrentSocket and modified TorrentServer. TorrentSocket could use more testing but seems fine. Note that only the implemented methods for TorrentSocket have been tested (definedSendMessage and definedGetMessage)