Added support for insecure connection mode / staging servers.