Support SSL connection to Docker registry

If a docker registry support only SSL connection, the frontend doesn't work. This patch allows the frontend connects to an SSL docker registry. Users need to enable this mode by set the environment variable ENV_DOCKER_REGISTRY_USE_SSL on start up.