Allow host to be specified for OAuth 2 token refresh

Most of the changes in `refresh_spec.rb` are just moving existing specs into a describe block.