Working parse of the ref field from gitlab vm:

root@linux:/home/bitnami# curl --data-binary @push.json -X POST
10.0.0.15:8088/payload
ref branch: refs/heads/master

Used the example json from http://demo.gitlab.com/help/web_hooks