More descriptive, easier to process container portmappings information in the API
Login against private registry

To improve the use of docker with a private registry the login
command is extended with a parameter for the server address.

While implementing i noticed that two problems hindered authentication to a
private registry:

1. the resolve of the authentication did not match during push
   because the looked up key was for example localhost:8080 but
   the stored one would have been https://localhost:8080

   Besides The lookup needs to still work if the https->http fallback
   is used

2. During pull of an image no authentication is sent, which
   means all repositories are expected to be private.

These points are fixed now. The changes are implemented in
a way to be compatible to existing behavior both in the
API as also with the private registry.

Update:

- login does not require the full url any more, you can login
  to the repository prefix:

  example:
  docker logon localhost:8080

Fixed corner corner cases:

- When login is done during pull and push the registry endpoint is used and
  not the central index

- When Remote sends a 401 during pull, it is now correctly delegating to
  CmdLogin

- After a Login is done pull and push are using the newly entered login data,
  and not the previous ones. This one seems to be also broken in master, too.

- Auth config is now transfered in a parameter instead of the body when
  /images/create is called.
Move authConfig to a Parameter on postImagePush, too
Send corrent endpoint authentication when an image is pulled during the run
cmd.
Merge on current master
Pass auth config through headers rather than as URL param
Use base64 encoding
Move auth header on run cmd
Merge branch 'better_api_ports' of git://github.com/shin-/docker into shin--better_api_ports
Merge branch '1357-implement-login-with-private-registry' of git://github.com/mhennings/docker into mhennings-1357-implement-login-with-private-registry
Merge branch 'mhennings-1357-implement-login-with-private-registry' into api_1_5
Updated docs for API v1.5
Bumped API version in api.go ; added <1.5 behavior to getContainersJSON
Return the process exit code for run commands
From FIXME: local path for ADD
improve image listing
filter image listing using path.Match
Merge builder.go into runtime.go
Add missing comments to runtime.go
Add missing package import