discoverd/client: Move test helpers to testutil

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
router: Fix goroutine leak

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
router: Fix off-by-one in etcd watch

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
router: Specify sinceIndex for etcd watch

If we don’t specify this, etcd assumes we want the *next* update, not everything since index 0.

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
router: Copy and close TCP listener before returning it to the pool

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
router: Add test mode that uses real discoverd/etcd

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
Merge branch 'router-fixes'