support for github enterprise

I think @calmdev started work on this already.

Will gladly take a pr if it works.