Adds support for reporting unstable builds as errors

Unstable builds were being reported as successful - this uses the 'error' status of the Github commit status api for such builds.