Add HUBOT_GITHUB_API_VERSION option

This allows switching from the default "beta" API to "preview" or something else.

Related Hubot script that would use the new function (code search is only available in "preview" API so far: https://github.com/github/hubot-scripts/pull/1040

Didn't bump the release version.