configure github endpoint for use with github enterprise

Also fixes https://github.com/mapbox/geojson.io/issues/385