test/cluster: Add fallback mode to DumpLogs

If `flynn-host ps` fails, dump the log files directly.

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
Merge pull request #669 from flynn/test-dump-fallback

test/cluster: Add fallback mode to DumpLogs
test: Track memory usage in /tmp/debug-info.sh

Signed-off-by: Lewis Marshall <lewis@lmars.net>
Merge pull request #670 from flynn/test-track-memory

test: Track memory usage in /tmp/memwatch.log
test: log more things

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
flannel: Add build scripts

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
discoverd/client: Use EXTERNAL_IP when address is not fully specified

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
host: Use VXLAN overlay networking

This patch adds an overlay network using VXLAN so that every
container has a cluster-routable IP address without relying on any
specific networking technology being available.

A modified version of the flannel daemon from CoreOS is used, which
allocates subnets and communicates with other members of the cluster
using etcd.

- Remove iptables port forwarding, iptables is now only used for
  NAT'ing outbound external traffic. If jobs want to receive inbound
  traffic from services that are not routable via VXLAN, they must
  use the host network namespace.
- Add flannel to the layer 0 bootstrap manifest.
- Add a networking setup stage to backend implementations, currently
  this is hard-coded to be run after the flannel job is started in
  the manifest runner. In the future it will be more abstract.
- Add a networking setup implementation to the libvirt-lxc backend
  that knows what flannel is and configures everything properly.
  This stage replaces the networking setup in the backend
  initialization:
  - Wait for the flannel job to come up.
  - Wait for the configuration from flannel to become available.
  - Parse the configuration from flannel, this config has the subnet
    and bridge MTU.
  - Configure the libvirt network/bridge with the appropriate
    settings.
  - Enable outbound NAT via iptables.

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>