deis/deis — pull request #2413 by bacongobbler (2014-11-06 19:50:22+00:00)
Title: fix(publisher): do not publish older app versions

As soon as a newer version of an application is published to etcd,
we should not be publishing any older application versions. This
prevents containers which are orphaned by fleet or systemd to be
exposed by the router.

Manually tested and confirmed:

```
core@deis-2 ~ $ etcdctl get /deis/services/pssample/pssample_v2.web.1
10.132.229.10:49238
core@deis-2 ~ $ etcdctl set /deis/services/pssample/pssample_v4.web.1 "10.132.229.10:49238"
10.132.229.10:49238
core@deis-2 ~ $ sleep 15 # wait for next publish loop
core@deis-2 ~ $ etcdctl ls /deis/services/pssample --recursive
/deis/services/pssample/pssample_v4.web.1
```