Extract shared logic in bin/edi
Extract shared logic in bin/edi

With the daemonized and non-daemonized approach, much logic was
duplicated.  This duplicated logic has been extracted in shared
variables.

madnificent/docker-ember