Deluge "Unable to set label for Torrent" fix

Fix a problem I had with uploading torrent/magnet to Deluge for download.
Was due to the WebUI not being connected to a Daemon.
This commit checks this and tries to connect to the first host in the WebUI server list.