[SPARK-2912] [Spark QA] [WIP] Include commit hash in Spark QA messages

You can find the [discussion that motivated this PR here](http://mail-archives.apache.org/mod_mbox/spark-dev/201408.mbox/%3CCABPQxssy0ri2QAz=cc9Tx+EXYWARm7pNcVm8apqCwc-esLbO4Q@mail.gmail.com%3E). Note that this is a work in progress and will be replaced by a cleaner PR.

As described in [SPARK-2912](https://issues.apache.org/jira/browse/SPARK-2912), the goal of this PR (and related ones to come) is to include useful detail in Spark QA's messages that are intended to make a committer's job easier to do.

Since this work depends on Jenkins, I cannot test this locally. Hence, I will be iterating via this PR.

[Note: This is a duplicate of a [previous PR](https://github.com/apache/spark/pull/1811), without the extraneous commits.]
I'm still playing with this, but basically I'd like to catch the http responses from curl in a clean way that also allows us to parse the JSON output if desired. That way, we make it easier in the future to do fancier things.

> it might be better to have it show as green in jenkins if the tests pass, even if the curl fails.

Ah, I see. Point taken. OK, so right now my intention is to just track status cleanly as a future-proofing measure, but not fail the build on curl failures.