Make github hook return the http status we should send to GitHub

This is a VERY roundabout thing to tunnel an http status through JSON,
but somehow we have arrived here.

Using a made-up HttpTextResult type to avoid depending on some
http lib just to send an integer and a string.