Add fetch timeout, same as on release-1.0 branch.

This adds the configuration variable "FETCH_TIMEOUT", which
sets the timeout used by the fetch library to something the
user wants, retaining the old value of 30 as a default.