Update AuthComponent to not strip when normalizing URLs.
Update AuthComponent to not strip when normalizing URLs.

Revert most of the changes done to fix #3897 originally and try
a different strategy of solving the base path issues and not breaking
apps running in a subdirectory.

Fixes #3916

eboominathan/cakephp,Balachan27/cakephp,akintoey/cakephp,yinhe007/cakephp,bravo-kernel/cakephp,ionas/cakephp,web-player/cakephp,petteyg/cakephp,petteyg/cakephp,burriko/cakephp,ionas/cakephp,tenkoma/cakephp,berrygoudswaard/cakephp,berrygoudswaard/cakephp,Balachan27/cakephp,berrygoudswaard/cakephp,tenkoma/cakephp,thinkingmedia/cakephp,khoimt/cakephp-study,erikfig/cakephp,mvdriel/cakephp,gmponos/cakephp,ndm2/cakephp,khoimt/cakephp-study,ndm2/cakephp,kumamidori/cakephp,jeffblack360/cakephp,akintoey/cakephp,dakota/cakephp,justinyost/cakephp,elboletaire/cakephp,cakephp/cakephp,cakephp-fr/cakephp,adopico/cakephp,cakephp/cakephp,Phillaf/cakephp,HavokInspiration/cakephp,CVO-Technologies/cakephp,dakota/cakephp,et304383/passbolt_api,et304383/passbolt_api,davidyell/cakephp,dakota/cakephp,justinyost/cakephp,michaelze/cakephp,ADmad/cakephp,eboominathan/cakephp,jerems02/cakephp,gmponos/cakephp,CakeDC/cakephp,tisu2tisu/cakephp,CVO-Technologies/cakephp,jeffblack360/cakephp,eboominathan/cakephp,CakeDC/cakephp,pbaire/cakephp,erikfig/cakephp,garethellis36/cakephp,tisu2tisu/cakephp,CVO-Technologies/cakephp,khoimt/cakephp-study,HavokInspiration/cakephp,garethellis36/cakephp,tgr0ss/cakephp,pbaire/cakephp,CakeDC/cakephp,garethellis36/cakephp,jjj117/cakephp,ADmad/cakephp,cakephp-fr/cakephp,cakephp-fr/cakephp,burriko/cakephp,mvdriel/cakephp,petteyg/cakephp,tisu2tisu/cakephp,cakephp/cakephp,dkarvounaris/cakephp,bravo-kernel/cakephp,et304383/passbolt_api,et304383/passbolt_api,Balachan27/cakephp,jerems02/cakephp,timhoeppner/cakephp,tenkoma/cakephp,Phillaf/cakephp,thinkingmedia/cakephp,davidyell/cakephp,ADmad/cakephp,elboletaire/cakephp,ndm2/cakephp,jerems02/cakephp,davidyell/cakephp,mvdriel/cakephp,cakephp/cakephp,CakeDC/cakephp,petteyg/cakephp,web-player/cakephp,jjj117/cakephp,nrother/cakephp,gmponos/cakephp,HavokInspiration/cakephp,adopico/cakephp,et304383/passbolt_api,web-player/cakephp,elboletaire/cakephp,dakota/cakephp,ndm2/cakephp,eryw/cakephp,pbaire/cakephp,eryw/cakephp,adopico/cakephp,dkarvounaris/cakephp,nrother/cakephp,ADmad/cakephp,thinkingmedia/cakephp,michaelze/cakephp,burriko/cakephp,dkarvounaris/cakephp,Phillaf/cakephp,tgr0ss/cakephp,timhoeppner/cakephp,bravo-kernel/cakephp,mvdriel/cakephp,nrother/cakephp,tgr0ss/cakephp,yinhe007/cakephp,kumamidori/cakephp,jjj117/cakephp,ionas/cakephp,michaelze/cakephp,garethellis36/cakephp,yinhe007/cakephp,justinyost/cakephp,tenkoma/cakephp,eryw/cakephp,jeffblack360/cakephp,timhoeppner/cakephp,kumamidori/cakephp,akintoey/cakephp,erikfig/cakephp