Adding script to get the name of the branch just built straight from the Jenkins JSON API.