support a configurable base url
Merge pull request #9 from sa2ajj/support-different-base-api

Support different base API to allow private GitHub instances.