utils: remove dotcloud/tar dep
Make devicemapper linux-only
Move reflink to os dependent file. OSX docker client fully functionnal.
Fixed some grammar and one other line about needing the postgresql-client for connecting to the service.
Merge branch 'master' into docker-osx
Remove trailing whitespace
Add some color in order to emphasis the test FAILURE
Add stream flag to logs command
Only stream logs when container is running
Support for same port on multiple interfaces

This commit improves upon the PortMapper and PortAllocator classes by changing
their internal data structures for port allocations to use a string rather than
a single integer. This string holds the network interface address as well as the
port number. This solves a previous problem where a port would be incorrectly
reported as being in use because it had been allocated for a different interface.

I've also added a basic test case for the PortMapper class, and extended the
existing test case for PortAllocator. In the case of PortMapper, this is done
by handing it a stub function for creating proxies rather than an actual
implementation.
Added HTTPAuthDecorator
Use basic auth for private registries when over HTTPS.
RequestFactory is no longer a singleton (can be different for different instances of Registry)
Registry now has an indexEndpoint member
Registry methods that needed the indexEndpoint parameter no longer do so
Registry methods will only use token auth where applicable if basic auth is not enabled.
gofmt
Factorized auth token setting
missed one call to setTokenAuth
Don't return req as result of setTokenAuth
Handle 401 response in auth.Login() for authed private registries
Expose expvar endpoint during debugging.

Fixes #3017
Support TESTFLAGS
Merge pull request #3022 from pnasrat/3021-makefile-testflags

Support TESTFLAGS