P2P search and download is now fully working. Some problems in closing
sockets though