Support GitHub Enterprise

new pr with only the changes required for github enterprise support and no mucking with styling