Fixed a couple of bugs related to deluge
Forgot and int()
Merge pull request #519 from tlex/dev

Deluge bugs: Labels were always lowercase, and SSL certs were always checked. Doesnt work with selfsigned certs