make docker run handle SIGINT/SIGTERM
Exit from `docker login` on SIGTERM and SIGINT.

Fixes #1299.
Use a more idiomatic syntax to capture the exit.
Allow to generate signals when termios is in raw mode.
Sort APIImages by most recent creation date.

Fixes #985.
Merge branch 'master' into login_signal

* master: (54 commits)
  Return JSONError for HTTPResponse error
  Fix TestEnv
  Revert "Bind daemon to 0.0.0.0 in Vagrant. Fixes #1304"
  Add unit tests for build no cache
  Add no cache for docker build
  Move note about officially supported kernel
  Solved the logo being squished in Safari
  Add hostname to the container environment.
  fix same issue in api.go
  improve tests
  Return registy status code in error
  update http://get.docker.io/latest
  Add check that the request is good
  fix tests about refactor checksums
  add ufw doc
  Fixed a couple of minor syntax errors.
  Updated the description of run -d
  Make sure the index also receives the checksums
  Switch json/payload order
  Remove unused parameter
  ...
Stop making a raw terminal to ask for registry login credentials.

It only disables echo asking for the password and lets the terminal to handle everything else.
It fixes #1392 since blank spaces are not discarded as they did before.
It also cleans the login code a little bit to improve readability.
Exit if there is any error reading from stdin.
Print a new line after getting the password from stdin.
Assume that if VAGRANT_DEFAULT_PROVIDER is set we shouldn't install vbox tools
keep processing signals after the first one
minor cleanup for signal handling
add formatting directive to failure to stop container error
Apply volumes-from before creating volumes

Copies the volumes from the container specified in `Config.VolumesFrom` before
creating volumes from `Config.Volumes`. Skips any preexisting volumes when
processing `Config.Volumes`. Fixes #1351
Skip existing volumes in volumes-from

Removes the error when a container already has a volume that would otherwise
be created by `Config.VolumesFrom`. Allows restarting containers with a
`Config.VolumesFrom` set.
Fix Graph ByParent() to generate list of child images per parent image.
Add test case for Graph ByParent().
brew: Reuse repositories when possible
brew: Don't build if docker daemon can't be reached
brew: Updated requirements