Attempt at using environment variables for configuration

I figured I'd take a shot at implementing https://github.com/dotcloud/docker-registry/issues/56 . I'm not very familiar with the codebase, and have 0 experience with Python, but was able to get something working at least. Does anyone have any suggestions on a better approach?