Add support for branches to github and gitlab webhooks

Now also able to checkout from branches other than the 'master' branch from both GitHub and GitLab webhooks