added configurable timeout for requests.

Added a timer in iOS to account for the case when there is 100% network
loss.