Set credentials for gist data

We need to set http credentials (if available) for our gist json query as well. Same pattern we use elsewhere.