api: Add default protocol for localhost.
api: Add default protocol for localhost.

Add default "http://" to site argument locally if it is not specified
in an api call.

This fixes a problem where if you didn't manually specify `http://`
when connecting to a development server, the API bindings would hang
trying to connect using HTTPS.

ryanbackman/zulip,shubhamdhama/zulip,showell/zulip,arpith/zulip,timabbott/zulip,blaze225/zulip,susansls/zulip,jphilipsen05/zulip,KingxBanana/zulip,synicalsyntax/zulip,dawran6/zulip,isht3/zulip,KingxBanana/zulip,Galexrt/zulip,amanharitsh123/zulip,sonali0901/zulip,Juanvulcano/zulip,grave-w-grave/zulip,dhcrzf/zulip,souravbadami/zulip,brockwhittaker/zulip,punchagan/zulip,dattatreya303/zulip,joyhchen/zulip,peguin40/zulip,hackerkid/zulip,PhilSk/zulip,eeshangarg/zulip,jrowan/zulip,jainayush975/zulip,christi3k/zulip,dawran6/zulip,brockwhittaker/zulip,brainwane/zulip,Juanvulcano/zulip,jackrzhang/zulip,timabbott/zulip,peguin40/zulip,rishig/zulip,vabs22/zulip,rht/zulip,samatdav/zulip,showell/zulip,brockwhittaker/zulip,jainayush975/zulip,mahim97/zulip,Diptanshu8/zulip,jackrzhang/zulip,amanharitsh123/zulip,souravbadami/zulip,tommyip/zulip,punchagan/zulip,sonali0901/zulip,tommyip/zulip,hackerkid/zulip,niftynei/zulip,dattatreya303/zulip,niftynei/zulip,sonali0901/zulip,SmartPeople/zulip,zacps/zulip,vabs22/zulip,vaidap/zulip,Galexrt/zulip,Galexrt/zulip,samatdav/zulip,hackerkid/zulip,synicalsyntax/zulip,reyha/zulip,samatdav/zulip,isht3/zulip,samatdav/zulip,Juanvulcano/zulip,rht/zulip,showell/zulip,sonali0901/zulip,punchagan/zulip,grave-w-grave/zulip,souravbadami/zulip,grave-w-grave/zulip,JPJPJPOPOP/zulip,timabbott/zulip,verma-varsha/zulip,dhcrzf/zulip,cosmicAsymmetry/zulip,susansls/zulip,mahim97/zulip,amanharitsh123/zulip,mahim97/zulip,TigorC/zulip,tommyip/zulip,Jianchun1/zulip,eeshangarg/zulip,Galexrt/zulip,tommyip/zulip,rht/zulip,KingxBanana/zulip,reyha/zulip,TigorC/zulip,AZtheAsian/zulip,verma-varsha/zulip,souravbadami/zulip,brockwhittaker/zulip,paxapy/zulip,zulip/zulip,jrowan/zulip,amyliu345/zulip,vabs22/zulip,vikas-parashar/zulip,vikas-parashar/zulip,blaze225/zulip,cosmicAsymmetry/zulip,rht/zulip,timabbott/zulip,Juanvulcano/zulip,jphilipsen05/zulip,TigorC/zulip,JPJPJPOPOP/zulip,SmartPeople/zulip,zacps/zulip,arpith/zulip,dattatreya303/zulip,samatdav/zulip,TigorC/zulip,dhcrzf/zulip,aakash-cr7/zulip,isht3/zulip,sonali0901/zulip,jrowan/zulip,jainayush975/zulip,Diptanshu8/zulip,peguin40/zulip,andersk/zulip,joyhchen/zulip,rishig/zulip,christi3k/zulip,andersk/zulip,ryanbackman/zulip,reyha/zulip,aakash-cr7/zulip,christi3k/zulip,rishig/zulip,susansls/zulip,kou/zulip,dawran6/zulip,dattatreya303/zulip,souravbadami/zulip,brainwane/zulip,jphilipsen05/zulip,cosmicAsymmetry/zulip,rht/zulip,j831/zulip,amanharitsh123/zulip,jphilipsen05/zulip,JPJPJPOPOP/zulip,timabbott/zulip,verma-varsha/zulip,vikas-parashar/zulip,showell/zulip,KingxBanana/zulip,ryanbackman/zulip,aakash-cr7/zulip,andersk/zulip,blaze225/zulip,kou/zulip,punchagan/zulip,Diptanshu8/zulip,j831/zulip,dhcrzf/zulip,blaze225/zulip,Galexrt/zulip,Jianchun1/zulip,amanharitsh123/zulip,synicalsyntax/zulip,jainayush975/zulip,jphilipsen05/zulip,grave-w-grave/zulip,arpith/zulip,zulip/zulip,punchagan/zulip,synicalsyntax/zulip,brockwhittaker/zulip,showell/zulip,cosmicAsymmetry/zulip,niftynei/zulip,andersk/zulip,PhilSk/zulip,jphilipsen05/zulip,brainwane/zulip,isht3/zulip,joyhchen/zulip,vikas-parashar/zulip,cosmicAsymmetry/zulip,amyliu345/zulip,jackrzhang/zulip,tommyip/zulip,shubhamdhama/zulip,jackrzhang/zulip,grave-w-grave/zulip,rht/zulip,zacps/zulip,susansls/zulip,kou/zulip,joyhchen/zulip,calvinleenyc/zulip,Galexrt/zulip,arpith/zulip,eeshangarg/zulip,amyliu345/zulip,vikas-parashar/zulip,amyliu345/zulip,kou/zulip,AZtheAsian/zulip,jackrzhang/zulip,PhilSk/zulip,susansls/zulip,reyha/zulip,joyhchen/zulip,isht3/zulip,christi3k/zulip,paxapy/zulip,shubhamdhama/zulip,kou/zulip,peguin40/zulip,tommyip/zulip,brainwane/zulip,zacps/zulip,jainayush975/zulip,peguin40/zulip,grave-w-grave/zulip,AZtheAsian/zulip,showell/zulip,vaidap/zulip,arpith/zulip,punchagan/zulip,calvinleenyc/zulip,paxapy/zulip,rishig/zulip,andersk/zulip,SmartPeople/zulip,eeshangarg/zulip,blaze225/zulip,calvinleenyc/zulip,dhcrzf/zulip,dattatreya303/zulip,dawran6/zulip,SmartPeople/zulip,Jianchun1/zulip,hackerkid/zulip,vabs22/zulip,dawran6/zulip,andersk/zulip,showell/zulip,brainwane/zulip,AZtheAsian/zulip,eeshangarg/zulip,ryanbackman/zulip,Diptanshu8/zulip,tommyip/zulip,dhcrzf/zulip,ryanbackman/zulip,shubhamdhama/zulip,TigorC/zulip,reyha/zulip,Jianchun1/zulip,shubhamdhama/zulip,amyliu345/zulip,Juanvulcano/zulip,paxapy/zulip,cosmicAsymmetry/zulip,brainwane/zulip,calvinleenyc/zulip,jrowan/zulip,verma-varsha/zulip,vaidap/zulip,PhilSk/zulip,sharmaeklavya2/zulip,Galexrt/zulip,Jianchun1/zulip,kou/zulip,rishig/zulip,vaidap/zulip,vaidap/zulip,sharmaeklavya2/zulip,timabbott/zulip,sharmaeklavya2/zulip,zulip/zulip,andersk/zulip,jackrzhang/zulip,ryanbackman/zulip,dawran6/zulip,rht/zulip,SmartPeople/zulip,jainayush975/zulip,zulip/zulip,eeshangarg/zulip,zulip/zulip,hackerkid/zulip,niftynei/zulip,j831/zulip,sharmaeklavya2/zulip,j831/zulip,TigorC/zulip,hackerkid/zulip,jrowan/zulip,zulip/zulip,reyha/zulip,mahim97/zulip,PhilSk/zulip,verma-varsha/zulip,JPJPJPOPOP/zulip,synicalsyntax/zulip,blaze225/zulip,vaidap/zulip,hackerkid/zulip,niftynei/zulip,sharmaeklavya2/zulip,vikas-parashar/zulip,punchagan/zulip,mahim97/zulip,KingxBanana/zulip,paxapy/zulip,samatdav/zulip,synicalsyntax/zulip,rishig/zulip,aakash-cr7/zulip,SmartPeople/zulip,christi3k/zulip,joyhchen/zulip,PhilSk/zulip,mahim97/zulip,peguin40/zulip,jrowan/zulip,christi3k/zulip,timabbott/zulip,JPJPJPOPOP/zulip,AZtheAsian/zulip,niftynei/zulip,susansls/zulip,Diptanshu8/zulip,isht3/zulip,shubhamdhama/zulip,brainwane/zulip,AZtheAsian/zulip,amyliu345/zulip,calvinleenyc/zulip,souravbadami/zulip,JPJPJPOPOP/zulip,calvinleenyc/zulip,kou/zulip,dhcrzf/zulip,vabs22/zulip,sharmaeklavya2/zulip,Diptanshu8/zulip,zacps/zulip,shubhamdhama/zulip,rishig/zulip,aakash-cr7/zulip,dattatreya303/zulip,KingxBanana/zulip,verma-varsha/zulip,synicalsyntax/zulip,jackrzhang/zulip,amanharitsh123/zulip,brockwhittaker/zulip,vabs22/zulip,paxapy/zulip,Jianchun1/zulip,eeshangarg/zulip,zacps/zulip,Juanvulcano/zulip,sonali0901/zulip,zulip/zulip,j831/zulip,aakash-cr7/zulip,arpith/zulip,j831/zulip