Add timeout for HTTPS connect and read

At least with OpenJDK 7u65 under Debian 7 there is no default timeout for the HTTP operation. Maybe it would be nicer to have a configurable timeout, but as I don't have a good understanding of the architecture I start off with a fixed timeout.