integrate bitswap with net

bitswap and dht need to be massaged into harmony with the new `net` package. this sequence of commits brings us closer to a functional build. i suggest we merge this into `net` and proceed from there.