Changes to enable eu-central-1.

Fixes https://github.com/docker/docker-registry/issues/674 https://github.com/docker/docker-registry/issues/661 and other eu-central-1 related issues.