receiver, slugbuilder: Support ENV_DIR.

The git archive gets rewritten to contain a cookie file .ENV_DIR and a two
directory structure (/app and /env). Slugbuilder now detects those slugs and
acts accordingly, while still allowing just plain ol' git archive slugs.

Closes #97

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>
Merge pull request #171 from flynn/env-dir-mk2

receiver, slugbuilder: Support ENV_DIR.
CONTRIBUTING: Add Code Style section

Signed-off-by: Lewis Marshall <lewis@lmars.net>
Merge pull request #172 from flynn/update-contributing

Add Code Style section to CONTRIBUTING.md
test: Fix dumping logs

Signed-off-by: Lewis Marshall <lewis@lmars.net>
Merge pull request #174 from flynn/fix-test-dump-logs

test: Fix dumping logs
cli: Fix release add with file

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
discoverd,router: Use random ports for etcd/discoverd during tests

Closes #76

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
travis: Re-enable test parallelism

refs #76

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
travis: Reduce test verbosity

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
host: Fix attach exit wait logic

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
router: Don't escape Request-URI

net/http uses the RequestURI method of the url to write the
Request-URI field. By default this escapes the Path field, which is
stored unescaped. By using the Opaque field we can work around this
and pass the Request-URI we got through to the backend without
modification.

Fixes #177

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
router: Fix typo in test comment

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
host: Use docopt in flynn-host

Signed-off-by: Lewis Marshall <lewis@lmars.net>
controller: Set flynn-controller.app_name metadata

Signed-off-by: Lewis Marshall <lewis@lmars.net>
host: Add flynn-host ps command

Signed-off-by: Lewis Marshall <lewis@lmars.net>
host: Add flynn-host log command

Signed-off-by: Lewis Marshall <lewis@lmars.net>
host: Add flynn-host stop command

Signed-off-by: Lewis Marshall <lewis@lmars.net>
host: Move ps, stop and log commands into cli package

Signed-off-by: Lewis Marshall <lewis@lmars.net>
Merge pull request #181 from flynn/flynn-host-cli

Flynn host cli