Time out in post-receive hook if build request takes too long

And report curl errors to the requester. Fixes #24.