
Multiple small optimizations on goog.Uri (mostly choosing a more
expensive code path in favor of faster but more complicated ones).
All of these resulted in small reduction of size in compiled code.
This also simplifies quite a bit of the logic in QueryData (and
would have prevented 1 recent bug).

1) Remove all but one internal usage of setIgnoreCase from goog.Uri.
2) Use goog.string.urlEncode and remove goog.Uri.encodeString_.
3) Reusing slightly more expensive code paths for several methods
in QueryData instead of writing custom code (we can't yet perform
a more extensive simplification of QueryData -- eg, always storing
array in the backing key map -- because that will break unit
tests of multiple projects that depend on key ordering).

R=brenneman,gboyer
DELTA=98  (6 added, 60 deleted, 32 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4572


git-svn-id: a40d3b3c31bd0c2f1a55c3521b995692a6f04bd9@1762 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

Medium/closure-library,sunilkumargit/closure-library,bebbi/closure-library,kencheung/closure-library,chrisprice/closure-library,4u/closure-library,Prinhotels/closure-library,ralic/closure-library,Dominator008/closure-library,ChadKillingsworth/closure-library,nicks/closure-library,teppeis/closure-library,lucidsoftware/closure-library,jupeter/composer-closure-library,4u/closure-library,redforks/closure-library,mmazaheri/closure-library,google/closure-library,maureknob/blockly-maure,AlexanderZon/closure-library,wagjo/closure-library,mjul/closure-library,gfredericks/closure-library,AlastairTaft/closure-library,jooking/closure-library,jeffbcross/closure-library,yathit/closure-library,mmazaheri/closure-library,kencheung/closure-library,fivetran/closure-library,Prinhotels/closure-library,vlkous/closure-library,concavelenz/closure-library,Dominator008/closure-library,kangkot/closure-library,EarthShipSolution1/closure-library,Luzzifa/closure-library,jvu/closure-library,concavelenz/closure-library,nicks/closure-library,Ju2ender/closure-library,platinumpixs/google-closure-library,wenzowski/closure-library,vlkous/closure-library,vincenta/closure-library,Ju2ender/closure-library,mrourke/closure-library,knutwalker/google-closure-library,alexg-dev/closure-library,Medium/closure-library,neraliu/closure-library,metamolecular/closure-library,neraliu/closure-library,gingerik/closure-library,real/closure-library,Aniaf/fkorboukh-js-new,ducklord/closure-library,rikuayanokozy/closure-library,gingerik/closure-library,grpbwl/closure-library,AlexanderZon/closure-library,jbnicolai/closure-library,manakor/closure-library,mail-apps/closure-library,ducklord/closure-library,jvu/closure-library,vincenta/closure-library,mmazaheri/closure-library,bebbi/closure-library,Anish2/closure-library,Aniaf/fkorboukh-js-new,vlkous/closure-library,alexg-dev/closure-library,redforks/closure-library,concavelenz/closure-library,lucidsoftware/closure-library,google/closure-library,vincenta/closure-library,sevaseva/closure-library,teppeis/closure-library.old,chrisprice/closure-library,plu83/closure-library,Aniaf/fkorboukh-js-new,beni55/closure-library,lewistg/closure-library,joeltine/closure-library,ominux/closure-library,gterzian/closure-library,jooking/closure-library,gregrperkins/closure-library,mrourke/closure-library,knutwalker/google-closure-library,manakor/closure-library,wagjo/closure-library,JasOXIII/closure-library,jupeter/composer-closure-library,ducklord/closure-library,jbnicolai/closure-library,grpbwl/closure-library,Prinhotels/closure-library,kangkot/closure-library,jhiswin/idiil-closure-library,igrep/closure-library,rikuayanokozy/closure-library,valerysamovich/closure-library,teppeis/closure-library,sevaseva/closure-library,ominux/closure-library,rikuayanokozy/closure-library,yathit/closure-library,vincenta/closure-library,neraliu/closure-library,google/closure-library,AlexanderZon/closure-library,teppeis/closure-library.old,Tinkerforge/tvpl-closure-library,teppeis/closure-library,closure-library-geeks/closure-library-jp,moagrius/closure-library,moagrius/closure-library,chone/closure-library,plu83/closure-library,lewistg/closure-library,EarthShipSolution1/closure-library,sevaseva/closure-library,jvu/closure-library,nanaze/closure-rhino-fork,AlastairTaft/closure-library,lucidsoftware/closure-library,nalaswad/nalaswad-closure,gingerik/closure-library,ChadKillingsworth/closure-library,Medium/closure-library,ChadKillingsworth/closure-library,kangkot/closure-library,Tinkerforge/tvpl-closure-library,jvu/closure-library,nalaswad/nalaswad-closure,manakor/closure-library,grpbwl/closure-library,grpbwl/closure-library,Aniaf/fkorboukh-js-new,ominux/closure-library,yathit/closure-library,federkasten/closure-library,neraliu/closure-library,jbnicolai/closure-library,teppeis/closure-library.old,nalaswad/nalaswad-closure,ralic/closure-library,mail-apps/closure-library,sunilkumargit/closure-library,kencheung/closure-library,plu83/closure-library,jbnicolai/closure-library,Luzzifa/closure-library,ChadKillingsworth/closure-library,Dominator008/closure-library,mrourke/closure-library,platinumpixs/google-closure-library,sunilkumargit/closure-library,Tinkerforge/tvpl-closure-library,fivetran/closure-library,chrisprice/closure-library,EarthShipSolution1/closure-library,joeltine/closure-library,vlkous/closure-library,jooking/closure-library,jhiswin/idiil-closure-library,nanaze/closure,real/closure-library,kangkot/closure-library,maureknob/blockly-maure,Luzzifa/closure-library,jhiswin/idiil-closure-library,Medium/closure-library,AlastairTaft/closure-library,Ju2ender/closure-library,closure-library-geeks/closure-library-jp,jooking/closure-library,alexg-dev/closure-library,rikuayanokozy/closure-library,talshani/google-closure-library,sevaseva/closure-library,talshani/google-closure-library,sunilkumargit/closure-library,Anish2/closure-library,bebbi/closure-library,beni55/closure-library,real/closure-library,ducklord/closure-library,nanaze/closure,chone/closure-library,yathit/closure-library,jupeter/composer-closure-library,codyebberson/closure-library,AlexanderZon/closure-library,wenzowski/closure-library,wagjo/closure-library,valerysamovich/closure-library,teppeis/closure-library,gterzian/closure-library,nicks/closure-library,wenzowski/closure-library,lewistg/closure-library,mail-apps/closure-library,manakor/closure-library,ikabirov/closure-library,jhiswin/idiil-closure-library,mrourke/closure-library,Anish2/closure-library,platinumpixs/google-closure-library,igrep/closure-library,redforks/closure-library,federkasten/closure-library,jeffbcross/closure-library,gfredericks/closure-library,valerysamovich/closure-library,ralic/closure-library,beni55/closure-library,alexg-dev/closure-library,joeltine/closure-library,jeffbcross/closure-library,federkasten/closure-library,gfredericks/closure-library,codyebberson/closure-library,metamolecular/closure-library,maureknob/blockly-maure,jeffbcross/closure-library,gfredericks/closure-library,gregrperkins/closure-library,google/closure-library,bebbi/closure-library,chone/closure-library,chrisprice/closure-library,metamolecular/closure-library,concavelenz/closure-library,Prinhotels/closure-library,kencheung/closure-library,JasOXIII/closure-library,mjul/closure-library,ikabirov/closure-library,joeltine/closure-library,gterzian/closure-library,Tinkerforge/tvpl-closure-library,Anish2/closure-library,closure-library-geeks/closure-library-jp,ikabirov/closure-library,gingerik/closure-library,codyebberson/closure-library,Luzzifa/closure-library,lewistg/closure-library,AlastairTaft/closure-library,JasOXIII/closure-library,fivetran/closure-library,federkasten/closure-library,ralic/closure-library,moagrius/closure-library,gterzian/closure-library,igrep/closure-library,Ju2ender/closure-library,mail-apps/closure-library,nalaswad/nalaswad-closure,nanaze/closure-rhino-fork,ominux/closure-library,Dominator008/closure-library,redforks/closure-library,moagrius/closure-library,lucidsoftware/closure-library,JasOXIII/closure-library,talshani/google-closure-library,valerysamovich/closure-library,platinumpixs/google-closure-library,maureknob/blockly-maure,ikabirov/closure-library,real/closure-library,beni55/closure-library,igrep/closure-library,chone/closure-library,nicks/closure-library,codyebberson/closure-library,plu83/closure-library,google/closure-library,nanaze/closure-rhino-fork