Improve internet connection check with proxy

When you have a proxy set, and you try to go to your preferences, 
oc does not care about the proxy and try to open a socket to owncloud.org

First, let's set some time-out value to not stall the interface for too long
then add a check if proxy is set then try to connect to the proxy as a replacement check