Add response timeout function (issue #48)

Add the code by rscreene contributed by rscreene to civetweb.
This cannot be done with automatic merge of the pull request, since the repositorie seem to be too different. So it is reimplemented at the current main line, with some adjustments.