Allow branch/ref to be passed into url

- Split on '=' but also include the second pair if it exists
- Allows passing in of files that are on a specific branch e.g. https://api.github.com/repos.json?ref=some-branch