Introduce Spree.uri and Spree.ajax helpers
Introduce Spree.uri and Spree.ajax helpers

Spree.uri is just a proxy to Spree.url. I kept typing uri when I meant url, and thought people might want to do both.

Spree.ajax takes some arguments and processes the URL through Spree.url before passing it to $.ajax. This is useful for people who want to make authenticated API requests to Spree.

Fixes #2901

lsirivong/spree,ckk-scratch/solidus,Boomkat/spree,vinayvinsol/spree,jimblesm/spree,Nevensoft/spree,AgilTec/spree,yomishra/pce,firman/spree,Machpowersystems/spree_mach,berkes/spree,hifly/spree,gregoryrikson/spree-sample,CiscoCloud/spree,kitwalker12/spree,ahmetabdi/spree,robodisco/spree,NerdsvilleCEO/spree,SadTreeFriends/spree,alvinjean/spree,odk211/spree,alejandromangione/spree,edgward/spree,pervino/spree,pulkit21/spree,ckk-scratch/solidus,athal7/solidus,scottcrawford03/solidus,groundctrl/spree,orenf/spree,radarseesradar/spree,gautamsawhney/spree,edgward/spree,rbngzlv/spree,keatonrow/spree,azranel/spree,urimikhli/spree,forkata/solidus,NerdsvilleCEO/spree,yomishra/pce,bjornlinder/Spree,derekluo/spree,Lostmyname/spree,camelmasa/spree,nooysters/spree,priyank-gupta/spree,rbngzlv/spree,APohio/spree,jaspreet21anand/spree,caiqinghua/spree,APohio/spree,LBRapid/spree,delphsoft/spree-store-ballchair,carlesjove/spree,CiscoCloud/spree,locomotivapro/spree,DarkoP/spree,woboinc/spree,jspizziri/spree,ahmetabdi/spree,tancnle/spree,grzlus/solidus,reidblomquist/spree,joanblake/spree,pjmj777/spree,lsirivong/solidus,dotandbo/spree,reinaris/spree,Engeltj/spree,LBRapid/spree,richardnuno/solidus,hoanghiep90/spree,vmatekole/spree,Senjai/spree,grzlus/spree,useiichi/spree,RatioClothing/spree,lyzxsc/spree,abhishekjain16/spree,APohio/spree,progsri/spree,softr8/spree,vulk/spree,SadTreeFriends/spree,derekluo/spree,calvinl/spree,pulkit21/spree,jordan-brough/solidus,ujai/spree,jspizziri/spree,robodisco/spree,watg/spree,softr8/spree,jordan-brough/spree,Hawaiideveloper/shoppingcart,project-eutopia/spree,nooysters/spree,net2b/spree,xuewenfei/solidus,Migweld/spree,archSeer/spree,welitonfreitas/spree,pervino/spree,TimurTarasenko/spree,gautamsawhney/spree,vulk/spree,zaeznet/spree,Boomkat/spree,Hates/spree,miyazawatomoka/spree,CiscoCloud/spree,calvinl/spree,jsurdilla/solidus,Engeltj/spree,berkes/spree,ahmetabdi/spree,pervino/spree,vinayvinsol/spree,welitonfreitas/spree,adaddeo/spree,ahmetabdi/spree,Mayvenn/spree,siddharth28/spree,HealthWave/spree,dandanwei/spree,Hawaiideveloper/shoppingcart,TrialGuides/spree,Kagetsuki/spree,progsri/spree,welitonfreitas/spree,degica/spree,vcavallo/spree,rakibulislam/spree,useiichi/spree,scottcrawford03/solidus,karlitxo/spree,kitwalker12/spree,madetech/spree,assembledbrands/spree,alepore/spree,zamiang/spree,devilcoders/solidus,Nevensoft/spree,vcavallo/spree,raow/spree,forkata/solidus,agient/agientstorefront,yushine/spree,maybii/spree,zaeznet/spree,Engeltj/spree,Senjai/spree,Hawaiideveloper/shoppingcart,beni55/spree,azranel/spree,fahidnasir/spree,jaspreet21anand/spree,CJMrozek/spree,joanblake/spree,tancnle/spree,vinsol/spree,xuewenfei/solidus,jasonfb/spree,shekibobo/spree,reinaris/spree,rakibulislam/spree,moneyspyder/spree,HealthWave/spree,dandanwei/spree,hifly/spree,tomash/spree,DynamoMTL/spree,woboinc/spree,jimblesm/spree,shekibobo/spree,RatioClothing/spree,delphsoft/spree-store-ballchair,vulk/spree,watg/spree,softr8/spree,patdec/spree,builtbybuffalo/spree,PhoenixTeam/spree_phoenix,richardnuno/solidus,ramkumar-kr/spree,jeffboulet/spree,jparr/spree,jhawthorn/spree,project-eutopia/spree,quentinuys/spree,moneyspyder/spree,zamiang/spree,surfdome/spree,vmatekole/spree,rakibulislam/spree,net2b/spree,groundctrl/spree,jeffboulet/spree,pjmj777/spree,useiichi/spree,progsri/spree,lsirivong/solidus,JuandGirald/spree,JDutil/spree,Boomkat/spree,TimurTarasenko/spree,TimurTarasenko/spree,bricesanchez/spree,Senjai/spree,Senjai/solidus,lsirivong/spree,lyzxsc/spree,grzlus/spree,Lostmyname/spree,richardnuno/solidus,abhishekjain16/spree,DarkoP/spree,Migweld/spree,sunny2601/spree,delphsoft/spree-store-ballchair,CJMrozek/spree,firman/spree,derekluo/spree,rbngzlv/spree,caiqinghua/spree,FadliKun/spree,bjornlinder/Spree,mleglise/spree,archSeer/spree,camelmasa/spree,mleglise/spree,degica/spree,trigrass2/spree,shaywood2/spree,jordan-brough/solidus,KMikhaylovCTG/spree,mindvolt/spree,yiqing95/spree,Machpowersystems/spree_mach,beni55/spree,Kagetsuki/spree,jsurdilla/solidus,dafontaine/spree,radarseesradar/spree,jeffboulet/spree,tesserakt/clean_spree,pervino/solidus,grzlus/spree,surfdome/spree,StemboltHQ/spree,patdec/spree,wolfieorama/spree,jasonfb/spree,DynamoMTL/spree,jimblesm/spree,dotandbo/spree,beni55/spree,azclick/spree,freerunningtech/spree,nooysters/spree,Nevensoft/spree,Ropeney/spree,kewaunited/spree,Mayvenn/spree,odk211/spree,APohio/spree,assembledbrands/spree,Arpsara/solidus,brchristian/spree,locomotivapro/spree,athal7/solidus,karlitxo/spree,reidblomquist/spree,AgilTec/spree,Lostmyname/spree,DynamoMTL/spree,pulkit21/spree,CiscoCloud/spree,radarseesradar/spree,shioyama/spree,omarsar/spree,patdec/spree,moneyspyder/spree,knuepwebdev/FloatTubeRodHolders,bonobos/solidus,ckk-scratch/solidus,vcavallo/spree,JuandGirald/spree,calvinl/spree,vinayvinsol/spree,jordan-brough/spree,NerdsvilleCEO/spree,azclick/spree,athal7/solidus,richardnuno/solidus,fahidnasir/spree,Lostmyname/spree,JDutil/spree,volpejoaquin/spree,agient/agientstorefront,piousbox/spree,volpejoaquin/spree,yiqing95/spree,grzlus/solidus,pervino/spree,rajeevriitm/spree,LBRapid/spree,woboinc/spree,surfdome/spree,surfdome/spree,groundctrl/spree,volpejoaquin/spree,hoanghiep90/spree,bricesanchez/spree,siddharth28/spree,builtbybuffalo/spree,SadTreeFriends/spree,locomotivapro/spree,adaddeo/spree,jaspreet21anand/spree,DarkoP/spree,Senjai/solidus,alejandromangione/spree,alepore/spree,lsirivong/solidus,mindvolt/spree,yushine/spree,forkata/solidus,omarsar/spree,priyank-gupta/spree,DynamoMTL/spree,shekibobo/spree,jsurdilla/solidus,imella/spree,piousbox/spree,jimblesm/spree,tomash/spree,raow/spree,jparr/spree,mindvolt/spree,xuewenfei/solidus,abhishekjain16/spree,degica/spree,volpejoaquin/spree,orenf/spree,rbngzlv/spree,Arpsara/solidus,Mayvenn/spree,tesserakt/clean_spree,edgward/spree,quentinuys/spree,biagidp/spree,jaspreet21anand/spree,kewaunited/spree,Ropeney/spree,pulkit21/spree,jhawthorn/spree,PhoenixTeam/spree_phoenix,pervino/solidus,omarsar/spree,Mayvenn/spree,yushine/spree,Boomkat/spree,nooysters/spree,sfcgeorge/spree,sideci-sample/sideci-sample-spree,azranel/spree,zamiang/spree,dafontaine/spree,madetech/spree,zaeznet/spree,firman/spree,hoanghiep90/spree,delphsoft/spree-store-ballchair,odk211/spree,imella/spree,archSeer/spree,tomash/spree,maybii/spree,kewaunited/spree,net2b/spree,miyazawatomoka/spree,builtbybuffalo/spree,vinayvinsol/spree,trigrass2/spree,alejandromangione/spree,ayb/spree,njerrywerry/spree,odk211/spree,mleglise/spree,jasonfb/spree,FadliKun/spree,urimikhli/spree,thogg4/spree,kitwalker12/spree,camelmasa/spree,brchristian/spree,quentinuys/spree,TrialGuides/spree,pjmj777/spree,trigrass2/spree,CJMrozek/spree,dotandbo/spree,locomotivapro/spree,ayb/spree,Arpsara/solidus,DarkoP/spree,knuepwebdev/FloatTubeRodHolders,dandanwei/spree,piousbox/spree,Ropeney/spree,bonobos/solidus,Migweld/spree,JDutil/spree,ckk-scratch/solidus,Hates/spree,HealthWave/spree,Arpsara/solidus,jhawthorn/spree,AgilTec/spree,archSeer/spree,jparr/spree,brchristian/spree,sliaquat/spree,dandanwei/spree,alvinjean/spree,Kagetsuki/spree,cutefrank/spree,tailic/spree,athal7/solidus,njerrywerry/spree,reinaris/spree,robodisco/spree,adaddeo/spree,patdec/spree,RatioClothing/spree,sunny2601/spree,orenf/spree,builtbybuffalo/spree,useiichi/spree,wolfieorama/spree,tancnle/spree,Hawaiideveloper/shoppingcart,edgward/spree,vinsol/spree,cutefrank/spree,derekluo/spree,gregoryrikson/spree-sample,welitonfreitas/spree,caiqinghua/spree,carlesjove/spree,FadliKun/spree,ramkumar-kr/spree,siddharth28/spree,brchristian/spree,reidblomquist/spree,moneyspyder/spree,JuandGirald/spree,ujai/spree,carlesjove/spree,yushine/spree,tesserakt/clean_spree,lyzxsc/spree,priyank-gupta/spree,bonobos/solidus,sunny2601/spree,sfcgeorge/spree,beni55/spree,sideci-sample/sideci-sample-spree,tailic/spree,vinsol/spree,NerdsvilleCEO/spree,keatonrow/spree,dafontaine/spree,berkes/spree,TimurTarasenko/spree,progsri/spree,carlesjove/spree,jordan-brough/solidus,shaywood2/spree,grzlus/solidus,yiqing95/spree,adaddeo/spree,sliaquat/spree,reidblomquist/spree,biagidp/spree,forkata/solidus,mleglise/spree,watg/spree,freerunningtech/spree,keatonrow/spree,dafontaine/spree,rajeevriitm/spree,Ropeney/spree,Antdesk/karpal-spree,FadliKun/spree,thogg4/spree,vcavallo/spree,net2b/spree,mindvolt/spree,robodisco/spree,joanblake/spree,devilcoders/solidus,caiqinghua/spree,rajeevriitm/spree,devilcoders/solidus,Hates/spree,knuepwebdev/FloatTubeRodHolders,agient/agientstorefront,hifly/spree,madetech/spree,sliaquat/spree,jordan-brough/spree,CJMrozek/spree,TrialGuides/spree,sunny2601/spree,cutefrank/spree,agient/agientstorefront,KMikhaylovCTG/spree,maybii/spree,tomash/spree,devilcoders/solidus,lsirivong/solidus,project-eutopia/spree,Machpowersystems/spree_mach,sfcgeorge/spree,jspizziri/spree,wolfieorama/spree,SadTreeFriends/spree,TrialGuides/spree,reinaris/spree,miyazawatomoka/spree,fahidnasir/spree,sideci-sample/sideci-sample-spree,shioyama/spree,gautamsawhney/spree,grzlus/spree,radarseesradar/spree,jsurdilla/solidus,karlitxo/spree,biagidp/spree,maybii/spree,trigrass2/spree,Nevensoft/spree,jordan-brough/solidus,vmatekole/spree,urimikhli/spree,pervino/solidus,vinsol/spree,shaywood2/spree,gautamsawhney/spree,JuandGirald/spree,abhishekjain16/spree,omarsar/spree,Senjai/solidus,JDutil/spree,shaywood2/spree,fahidnasir/spree,ayb/spree,Kagetsuki/spree,calvinl/spree,njerrywerry/spree,lsirivong/spree,piousbox/spree,assembledbrands/spree,kewaunited/spree,scottcrawford03/solidus,hifly/spree,thogg4/spree,tailic/spree,zaeznet/spree,keatonrow/spree,freerunningtech/spree,tancnle/spree,pervino/solidus,sliaquat/spree,zamiang/spree,joanblake/spree,Migweld/spree,ramkumar-kr/spree,priyank-gupta/spree,Hates/spree,jspizziri/spree,PhoenixTeam/spree_phoenix,azclick/spree,gregoryrikson/spree-sample,AgilTec/spree,lyzxsc/spree,PhoenixTeam/spree_phoenix,orenf/spree,jeffboulet/spree,alepore/spree,lsirivong/spree,groundctrl/spree,alejandromangione/spree,karlitxo/spree,imella/spree,KMikhaylovCTG/spree,rakibulislam/spree,ramkumar-kr/spree,project-eutopia/spree,hoanghiep90/spree,gregoryrikson/spree-sample,bjornlinder/Spree,alvinjean/spree,thogg4/spree,madetech/spree,KMikhaylovCTG/spree,berkes/spree,grzlus/solidus,StemboltHQ/spree,bonobos/solidus,jparr/spree,StemboltHQ/spree,xuewenfei/solidus,bricesanchez/spree,azranel/spree,siddharth28/spree,sfcgeorge/spree,shekibobo/spree,cutefrank/spree,Senjai/solidus,miyazawatomoka/spree,raow/spree,azclick/spree,softr8/spree,yiqing95/spree,shioyama/spree,camelmasa/spree,firman/spree,Antdesk/karpal-spree,tesserakt/clean_spree,ujai/spree,alvinjean/spree,rajeevriitm/spree,dotandbo/spree,vmatekole/spree,jasonfb/spree,Engeltj/spree,quentinuys/spree,njerrywerry/spree,raow/spree,wolfieorama/spree,scottcrawford03/solidus,vulk/spree,Antdesk/karpal-spree,ayb/spree,yomishra/pce