Jenkins integration improvements/bugfixes (round 2)

- record warning stats as part of Jenkins comment in commit
- fix exception thrown instead of commit link in JSON response
- fix commit detection from manually started builds
Merge branch 'jenkins-integration'

* jenkins-integration:
  Jenkins integration improvements/bugfixes (round 2)