Add back support for --endpoint-url option.  Fixes #209.