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
router: Fix unregister races in tests

Closes #183

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
test: Only create SSH key for basic test

Signed-off-by: Lewis Marshall <lewis@lmars.net>
controller: Support streaming job events

Signed-off-by: Lewis Marshall <lewis@lmars.net>
cli: Add config.ReadFile

Signed-off-by: Lewis Marshall <lewis@lmars.net>
test: Add scheduler scale tests

Signed-off-by: Lewis Marshall <lewis@lmars.net>
router,discoverd: Fix sync w/ pruned etcds.

Signed-off-by: Michael Elsdörfer <michael@elsdoerfer.com>
test: Wait for gitreceive to start in TestBasic

Signed-off-by: Lewis Marshall <lewis@lmars.net>
Merge pull request #176 from flynn/scheduler-tests

Scheduler tests
Merge pull request #185 from flynn/test-basic-fix

test: Wait for gitreceive to start in TestBasic
Merge pull request #178 from miracle2k/router-etcd-init

router: Fix sync with pruned etcd instances.
discoverd,router: Fix etcd fullsync

The newKeys map is used to determine what keys were
deleted since the last sync.

Closes #187

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