Global HTTPS support

Fixes to enable doushio through HTTPS