Fixed issue with the revision labeller where a newly create project with an unknown status would throw an exception.
Fixed an issue where the git commit hash would always be the master branch rather than the branch being built.
Added tests.