router,discoverd: Fix sync w/ pruned etcds.

Signed-off-by: Michael Elsdörfer <michael@elsdoerfer.com>
Merge pull request #178 from miracle2k/router-etcd-init

router: Fix sync with pruned etcd instances.
discoverd,router: Fix etcd fullsync

The newKeys map is used to determine what keys were
deleted since the last sync.

Closes #187

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
router, bootstrap: Support TCP port ranges.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>
cli: Support TCP routes.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>
controller: Expose GetRoute().

Not used anywhere so far, but should be useful to 3rd party API users.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>
test: Fix test to work with the latest CLI.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>
test: Add an integration test for TCP apps.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>
controller: Support overwriting image entrypoint

Signed-off-by: Lewis Marshall <lewis@lmars.net>