net/id_test: refactor tests into own func
net: have an explicit IdentifyConn on dial

- Make sure we call IdentifyConn on dialed out conns
- we wait until the identify is **done** before return
- on listening case, we can also wait.
- tests now make sure dial does wait.
- tests now make sure we can wait on listening case.
net/mocknet: fixed listenaddrs (misrepresenting)

some dht tests signaled "sending peer empty addresses"
which would then cause a failure. this was a misrepresentation
on the part of mocknet. it has been corrected.
Makefiles: build the test docker img

this commit changes how the dockertest image is built.
it moves the command into dockertest/Makefile. It also
uses a cached file that -- if removed with make clean
-- can signal whether the image should be rebuilt.
(it may be ideal to have it either detect code has
changed, or just rebuild every time. )
core: set local listening addresses
dht: bit nicer logging
dockertest script to run the test on any img

- run the build image task every time to avoid
  running the test on stale code
- run the test from a script, so that we can
  run the test on different pre-built images.
  like:

    # build an image now and run tests on it
    make test

    # run tests on previously built image
    ./run-test-on-img.sh ipfs-stable

    # TODO: run test on git ref
    ./run-test-on-git-ref.sh <git-ref>
added bootstrap logging
net: Connectedness bugfix

Connectedness was totally incorrect. added a test case.
peerstream updated (data race)
net/conns better printing of connections
test(docker/network) disable color in daemon logs

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
remote low SnR debug statement

cc @jbenet @whyrusleeping

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
rm low SnR debug statement

"Get" is still fairly useful. Leaving it there.

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
misc naming

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
fix: data race in test

https://build.protocol-dev.com/job/race/9352/console

@jbenet @whyrusleeping

pinging you guys to spread awareness about the delay.D type for
configurable delays

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
connectedness test timing
listen addresses: add Interface addresses

network.ListenAddresses() are general.
Interface addresses are specific.