Basic support for GitHub enterprise

I'm not merging this in until I've gotten someone with a GitHub enterprise account to test it, but this change should allow the package to support GitHub Enterprise accounts.