Remove trailing slash from host parameter in docker init.

(This causes errors on Docker 0.8)

Docker-DCO-1.1-Signed-off-by: Morgante Pell <morgante.pell@morgante.net> (github: morgante)
api/common.go: code shared by the server and client implementation of the Docker remote api.

Docker-DCO-1.1-Signed-off-by: Solomon Hykes <solomon@docker.com> (github: shykes)
Engine: add tests for ParseJob()

Docker-DCO-1.1-Signed-off-by: Solomon Hykes <solomon@docker.com> (github: shykes)
Engine: tiny cosmetic fix

To make @creack happy :)

Docker-DCO-1.1-Signed-off-by: Solomon Hykes <solomon@docker.com> (github: shykes)
Use the cpu cgroup subsystem instead of memory because its non optional
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
Merge pull request #4315 from shykes/engine-parsejob-test

Engine: add tests for ParseJob()
fix gofmt

Docker-DCO-1.1-Signed-off-by: Victor Vieux <victor.vieux@docker.com> (github: vieux)
Merge pull request #4313 from shykes/api-common

api/common.go
Merge pull request #4309 from crosbymichael/change-cgroup-subsystem

Use the cpu cgroup subsystem instead of memory because its non optional
Merge pull request #4296 from morgante/patch-1

Remove trailing slash from --host parameter in contrib/vagrant-docker/README.md