Add more metadata in Jenkins webhook and resolve multiple triggers.

Add branch and sha1 to Jenkins webhook.
I would like a short description of the string manipulation here. E.g. 

What the string looks before and after you split+index it.