Fix a race condition in delayed initialization.
Add DHT-port handling during hanshake.
Add peer's version into the peer table. Fix peer state changing (leeching => seeding).