api: Add is_remote_server().
api: Add is_remote_server().

This function abstracts the logic to ascertain the source of API
auth request.

tommyip/zulip,brockwhittaker/zulip,eeshangarg/zulip,rht/zulip,synicalsyntax/zulip,eeshangarg/zulip,brainwane/zulip,rht/zulip,zulip/zulip,synicalsyntax/zulip,jphilipsen05/zulip,j831/zulip,andersk/zulip,dhcrzf/zulip,vaidap/zulip,rht/zulip,andersk/zulip,ryanbackman/zulip,Galexrt/zulip,showell/zulip,verma-varsha/zulip,shubhamdhama/zulip,shubhamdhama/zulip,andersk/zulip,jphilipsen05/zulip,christi3k/zulip,zulip/zulip,brockwhittaker/zulip,dhcrzf/zulip,verma-varsha/zulip,jackrzhang/zulip,rishig/zulip,vaidap/zulip,timabbott/zulip,synicalsyntax/zulip,shubhamdhama/zulip,ryanbackman/zulip,j831/zulip,shubhamdhama/zulip,brainwane/zulip,timabbott/zulip,christi3k/zulip,brainwane/zulip,showell/zulip,dhcrzf/zulip,hackerkid/zulip,brainwane/zulip,jrowan/zulip,christi3k/zulip,verma-varsha/zulip,showell/zulip,kou/zulip,jackrzhang/zulip,showell/zulip,eeshangarg/zulip,hackerkid/zulip,jackrzhang/zulip,eeshangarg/zulip,vabs22/zulip,vaidap/zulip,jackrzhang/zulip,jackrzhang/zulip,rishig/zulip,showell/zulip,brockwhittaker/zulip,vaidap/zulip,tommyip/zulip,amanharitsh123/zulip,shubhamdhama/zulip,shubhamdhama/zulip,punchagan/zulip,dhcrzf/zulip,jphilipsen05/zulip,tommyip/zulip,Galexrt/zulip,brainwane/zulip,j831/zulip,verma-varsha/zulip,andersk/zulip,rishig/zulip,j831/zulip,brockwhittaker/zulip,christi3k/zulip,jphilipsen05/zulip,showell/zulip,kou/zulip,jackrzhang/zulip,Galexrt/zulip,Galexrt/zulip,kou/zulip,eeshangarg/zulip,ryanbackman/zulip,dhcrzf/zulip,zulip/zulip,dhcrzf/zulip,rishig/zulip,hackerkid/zulip,eeshangarg/zulip,christi3k/zulip,mahim97/zulip,vabs22/zulip,timabbott/zulip,verma-varsha/zulip,mahim97/zulip,brainwane/zulip,jrowan/zulip,mahim97/zulip,punchagan/zulip,rht/zulip,punchagan/zulip,hackerkid/zulip,kou/zulip,tommyip/zulip,zulip/zulip,mahim97/zulip,mahim97/zulip,ryanbackman/zulip,andersk/zulip,tommyip/zulip,Galexrt/zulip,zulip/zulip,Galexrt/zulip,jrowan/zulip,dhcrzf/zulip,rht/zulip,showell/zulip,vabs22/zulip,ryanbackman/zulip,amanharitsh123/zulip,timabbott/zulip,rishig/zulip,synicalsyntax/zulip,timabbott/zulip,ryanbackman/zulip,punchagan/zulip,synicalsyntax/zulip,zulip/zulip,jrowan/zulip,amanharitsh123/zulip,punchagan/zulip,punchagan/zulip,eeshangarg/zulip,hackerkid/zulip,j831/zulip,jrowan/zulip,vabs22/zulip,amanharitsh123/zulip,rishig/zulip,jphilipsen05/zulip,rht/zulip,synicalsyntax/zulip,hackerkid/zulip,christi3k/zulip,jackrzhang/zulip,punchagan/zulip,andersk/zulip,mahim97/zulip,tommyip/zulip,kou/zulip,shubhamdhama/zulip,zulip/zulip,brockwhittaker/zulip,amanharitsh123/zulip,synicalsyntax/zulip,rishig/zulip,vaidap/zulip,vabs22/zulip,j831/zulip,rht/zulip,kou/zulip,kou/zulip,andersk/zulip,jrowan/zulip,tommyip/zulip,jphilipsen05/zulip,brockwhittaker/zulip,timabbott/zulip,Galexrt/zulip,amanharitsh123/zulip,timabbott/zulip,vaidap/zulip,hackerkid/zulip,verma-varsha/zulip,brainwane/zulip,vabs22/zulip