Added debug messages. Optimized etorrent_io_file_sup.