emit 'ready' when initial self lookup is finished

not after K nodes are found
2.2.0
Update client.js

fix to make live tests pass
only convert infohash once
2.2.1
Add timers to use it in the browser
Don't make use of package 'dns' if contacts are IP addresses

As there is no current implementation of dns package for browser, this
would temporarily make the bittorrent-dht package work if
BOOTSTRAP_NODES are set to IP addresses.