use go lib instead of shell out

Docker-DCO-1.1-Signed-off-by: Aaron Feng aaron.feng@gmail.com (github: aaronfeng)
go fmt

Docker-DCO-1.1-Signed-off-by: Aaron Feng aaron.feng@gmail.com (github: aaronfeng)
Update exposed ports mapping

Docker-DCO-1.1-Signed-off-by: Fernando Mayo <fernando@tutum.co> (github: fermayo)
Refactor Tutum backend to use beam

Docker-DCO-1.1-Signed-off-by: Fernando Mayo <fernando@tutum.co> (github: fermayo)

Conflicts:
	backends/backends.go
Cleanup and Enhance Debug

Signed-off-by: John Hopper john.hopper@jpserver.net
Move debug.go to a `debug` sub-package

Signed-off-by: Solomon Hykes <solomon@docker.com>
Port to libchan, pt. 1

This is a minimal effort to get things running. Only the `beam` package
has changed - backend code is untouched.

- The `beam` package is still around, but functions as a
  libswarm-specific wrapper around libchan messages. It'll either be
  renamed or moved to the top-level namespace.

- We have our own Message type which serializes/deserializes to libchan
  messages, and our own versions of Sender and Receiver which speak
  libswarm. WrapSender and WrapReceiver promote libchan objects to
  their libswarm equivalents.

- We also have our own wrappers around libchan utilities: RetPipe,
  Handler, Pipe, Copy.

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
Basic tests for Message/Sender/Receiver

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
Implement NopSender (removed by switch to libchan)

Signed-off-by: Solomon Hykes <solomon@docker.com>
Fix debug after switch to libchan

Signed-off-by: Solomon Hykes <solomon@docker.com>
Add maintainers for individual backends

Signed-off-by: Solomon Hykes <solomon@docker.com>
Adds support for `docker inspect` to dockerserver

Signed-off-by: Brian Goff <cpuguy83@gmail.com> (github: cpuguy83)

Conflicts:
	backends/dockerserver.go
Take a whack at installation instructions.

This instructions allowed me to compile swarmd on my box.
mention the param to dockerserver

Docker-DCO-1.1-Signed-off-by: Sven Dowideit <SvenDowideit@fosiki.com> (github: SvenDowideit)
Assert that stubbed requests are actually called in dockerclient test

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
Test for dockerclient Get

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
Remove verb-specific handler methods from Server

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
Implement OnSpawn

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
Implement OnLs

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
Implement OnStart and OnStop

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>