Dont rewrite content identical to cached data
Remove private image endpoints

The private image endpoints were broken, unused,
and undocumented.

Signed-off-by: Eric Windisch <eric@windisch.us>
Merge pull request #546 from ewindisch/remove_private_endpoints

Remove private image endpoints
fix parenthesis for default environment variables
refs #484 to configure CORS
Merge pull request #549 from visualphoenix/bugfix/env_defaults

fix parenthesis for default environment variables
Merge pull request #544 from docker/lru_oprimize_put_content

Dont rewrite content identical to cached data
Merge pull request #484 from S1E11/master

to enable CORS tag API
Fix bugs when using MySQL as index database

1. MySQLdb will raise ProgrammingError when table doesn't exists. Use engine.has_table to check whether table exists for compatible
2. VARCHAR requires a length on dialect mysql. String length limit is according to [Docker Hub's limit](https://registry.hub.docker.com/account/repositories/add/) and [docker's valid namespace and repo regex](https://github.com/docker/docker/blob/master/registry/registry.go#L214)
Ignore pedentic hacking warning

- H803 disables verifying that commit message doesn't end with a dot

Docker-DCO-1.1-Signed-off-by: Olivier Gambier <olivier@docker.com> (github: dmp42)
Fix hacking complaints

intermittently complaining travis about CORS not being a module

Docker-DCO-1.1-Signed-off-by: Olivier Gambier <olivier@docker.com> (github: dmp42)
Merge pull request #555 from irachex/mysql

Fix bugs when using MySQL as index database
Fixed get_tags whe using storage_path
Added test