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>
router: Support custom etcd prefix.

Signed-off-by: Michael Elsdörfer <michael@elsdoerfer.com>
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>
Merge branch 'router-etcd-init' into router-miracle2k

Conflicts:
	discoverd/agent/backend_etcd.go
Merge branch 'router-custom-prefix' into router-miracle2k

Conflicts:
	router/server.go
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