docker-registry-like API with redirection, as a wsgi app