Parse file correctly for authenticated repo request

This allows the use of files in repos with authentication. The previous
url construction for github api requests did not correctly construct
query params to authenticate and so very quickly hit the github rate
limit.
Merge pull request #22 from alphagov/fix-for-repo-source-from-branch

Parse file correctly for authenticated repo request