Support detaching on containers created in container networking mode.
Merge pull request #304 from viirya/fix_detach

Support detaching on containers created in container networking mode.
correctly check whether weavedns is running
and return an error status rather than exit when containers stop just
before an HTTP call, which in turn allows us to make tell_dns properly
ignore weavedns container absences.

Fixes #300