Add options to specify read and connection timeouts

We encountered timeout problems in our build system with very big JavaScript files and/or a high load on the closure compiler service, therefore we needed more control over timeouts.

This PR adds separate options for the connection and read timeout.