Timeout support for requests

Timeout support for curl/stream requests.