CLOUDSTACK-5723: Add timeout for SSL handshake

To prevent malfunction agent block the future SSL connections
Fix tab issues in the Link.java