Support Bundler 1.8 host based credentials

Test and fix server configuration, and add support for Bundler 1.8 host based credentials (https://github.com/bundler/bundler/pull/3295).

/cc @zendesk/octo @steved555 @grosser