Update library to allow for GitHub Enterprise URLs.

The base URL for a GitHub Enterprise account is obviously different. But
there's also a slight difference with the API URL as well.