Made peer connector use a logger
Corrected that the metadata files were not assigned to the torrent