Add a global timeout that is applied to most API requests.