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.
Yeah I agree here, I'm not a big fan of appending to the regular expression either.