Modify rest_dispatch to support method specific flags.
Modify rest_dispatch to support method specific flags.

[simplified substantially by tabbott]

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