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.
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.
Add the ISIG syscall back to not kill the client withing a shell with ctrl+c.
Simplify term signal handler.
Remove unused imports.
Fix syscall name.
Use flag.StringVar to capture the command line flags.
Improve docker-ci deployment and tests
testing, issue #773: Automatically test pull requests on docker-ci
testing, issue #773: Add infrastructure docker-ci PR documentation
Make Kawsar Saiyeed @KSid the maintainer for contributed tools
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.
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.