support github enterprise

This Pull Request is to include the relevant changes to support the functionality in GitHub enterprise.

It includes an option page for the user to define the URL of her enterprise version.