Allow api endpoint configuration to enable enterprise usage

Adding two optional parameters api_endpoint and web_endpoint. This enables using the system with an enterprise github installation on a custom domain. If the parameters are omitted the standard github.com api will be used.