Add connection and response timeout options.

Add connection and response timeout, thus the main app is not too tied to the request.