Allow tuning fetch timeouts from config.php

Patch to move hard-coded timeout values to parameters in config.php, this allows, for example, working around some host's overly impatient MySQL databases.