Allow config registry middleware
We can use the middleware config for registry.
Use case: Setup Cloudfront middleware to distribute globally. https://github.com/docker/docker.github.io/blob/master/registry/storage-drivers/s3.md#registry-configuration
See #3039
Edited by Sang Lê Thanh