Add support for URI-based config (useful e.g. for heroku)