Refresh auth tokens if host registration fails with authentication error.
Refresh auth tokens if host registration fails with authentication error.

This is part of the work to allow host re-registration if a host is removed via
the client UI.

BUG=110046
TEST=Delete host*.json, restart daemon - verify new host is registered after
prompting for password.

Review URL: https://chromiumcodereview.appspot.com/9303008

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@120407 0039d316-1c4b-4281-b951-d872f2087c98

ltilve/chromium,dushu1203/chromium.src,robclark/chromium,dushu1203/chromium.src,junmin-zhu/chromium-rivertrail,chuan9/chromium-crosswalk,chuan9/chromium-crosswalk,hujiajie/pa-chromium,junmin-zhu/chromium-rivertrail,keishi/chromium,robclark/chromium,fujunwei/chromium-crosswalk,anirudhSK/chromium,jaruba/chromium.src,axinging/chromium-crosswalk,Pluto-tv/chromium-crosswalk,Fireblend/chromium-crosswalk,timopulkkinen/BubbleFish,junmin-zhu/chromium-rivertrail,Fireblend/chromium-crosswalk,krieger-od/nwjs_chromium.src,crosswalk-project/chromium-crosswalk-efl,mogoweb/chromium-crosswalk,hgl888/chromium-crosswalk-efl,Just-D/chromium-1,TheTypoMaster/chromium-crosswalk,anirudhSK/chromium,rogerwang/chromium,dednal/chromium.src,hgl888/chromium-crosswalk,hgl888/chromium-crosswalk-efl,Jonekee/chromium.src,robclark/chromium,axinging/chromium-crosswalk,ChromiumWebApps/chromium,hujiajie/pa-chromium,hgl888/chromium-crosswalk,zcbenz/cefode-chromium,ltilve/chromium,Jonekee/chromium.src,littlstar/chromium.src,jaruba/chromium.src,fujunwei/chromium-crosswalk,bright-sparks/chromium-spacewalk,patrickm/chromium.src,M4sse/chromium.src,Jonekee/chromium.src,rogerwang/chromium,dednal/chromium.src,keishi/chromium,PeterWangIntel/chromium-crosswalk,patrickm/chromium.src,dushu1203/chromium.src,markYoungH/chromium.src,Chilledheart/chromium,TheTypoMaster/chromium-crosswalk,ondra-novak/chromium.src,junmin-zhu/chromium-rivertrail,ChromiumWebApps/chromium,zcbenz/cefode-chromium,robclark/chromium,timopulkkinen/BubbleFish,patrickm/chromium.src,Just-D/chromium-1,Fireblend/chromium-crosswalk,Jonekee/chromium.src,PeterWangIntel/chromium-crosswalk,bright-sparks/chromium-spacewalk,ondra-novak/chromium.src,mogoweb/chromium-crosswalk,ChromiumWebApps/chromium,anirudhSK/chromium,jaruba/chromium.src,chuan9/chromium-crosswalk,timopulkkinen/BubbleFish,ltilve/chromium,fujunwei/chromium-crosswalk,krieger-od/nwjs_chromium.src,pozdnyakov/chromium-crosswalk,patrickm/chromium.src,crosswalk-project/chromium-crosswalk-efl,bright-sparks/chromium-spacewalk,hujiajie/pa-chromium,ondra-novak/chromium.src,robclark/chromium,timopulkkinen/BubbleFish,mohamed--abdel-maksoud/chromium.src,littlstar/chromium.src,nacl-webkit/chrome_deps,TheTypoMaster/chromium-crosswalk,bright-sparks/chromium-spacewalk,nacl-webkit/chrome_deps,Pluto-tv/chromium-crosswalk,ChromiumWebApps/chromium,mogoweb/chromium-crosswalk,ChromiumWebApps/chromium,hujiajie/pa-chromium,anirudhSK/chromium,dushu1203/chromium.src,hgl888/chromium-crosswalk-efl,littlstar/chromium.src,Jonekee/chromium.src,mohamed--abdel-maksoud/chromium.src,hujiajie/pa-chromium,M4sse/chromium.src,M4sse/chromium.src,rogerwang/chromium,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk-efl,hgl888/chromium-crosswalk-efl,Fireblend/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,TheTypoMaster/chromium-crosswalk,pozdnyakov/chromium-crosswalk,robclark/chromium,Chilledheart/chromium,chuan9/chromium-crosswalk,mogoweb/chromium-crosswalk,keishi/chromium,crosswalk-project/chromium-crosswalk-efl,patrickm/chromium.src,krieger-od/nwjs_chromium.src,dednal/chromium.src,markYoungH/chromium.src,Just-D/chromium-1,axinging/chromium-crosswalk,dushu1203/chromium.src,dushu1203/chromium.src,nacl-webkit/chrome_deps,markYoungH/chromium.src,dednal/chromium.src,dednal/chromium.src,markYoungH/chromium.src,M4sse/chromium.src,mogoweb/chromium-crosswalk,pozdnyakov/chromium-crosswalk,M4sse/chromium.src,rogerwang/chromium,pozdnyakov/chromium-crosswalk,hujiajie/pa-chromium,junmin-zhu/chromium-rivertrail,robclark/chromium,Jonekee/chromium.src,ondra-novak/chromium.src,zcbenz/cefode-chromium,markYoungH/chromium.src,markYoungH/chromium.src,dednal/chromium.src,ondra-novak/chromium.src,hgl888/chromium-crosswalk,zcbenz/cefode-chromium,anirudhSK/chromium,TheTypoMaster/chromium-crosswalk,markYoungH/chromium.src,hujiajie/pa-chromium,timopulkkinen/BubbleFish,hgl888/chromium-crosswalk-efl,hgl888/chromium-crosswalk,ChromiumWebApps/chromium,ltilve/chromium,mogoweb/chromium-crosswalk,timopulkkinen/BubbleFish,Just-D/chromium-1,crosswalk-project/chromium-crosswalk-efl,mogoweb/chromium-crosswalk,M4sse/chromium.src,timopulkkinen/BubbleFish,PeterWangIntel/chromium-crosswalk,krieger-od/nwjs_chromium.src,Just-D/chromium-1,keishi/chromium,Pluto-tv/chromium-crosswalk,robclark/chromium,krieger-od/nwjs_chromium.src,fujunwei/chromium-crosswalk,junmin-zhu/chromium-rivertrail,rogerwang/chromium,nacl-webkit/chrome_deps,pozdnyakov/chromium-crosswalk,zcbenz/cefode-chromium,pozdnyakov/chromium-crosswalk,junmin-zhu/chromium-rivertrail,M4sse/chromium.src,keishi/chromium,hgl888/chromium-crosswalk-efl,dushu1203/chromium.src,hgl888/chromium-crosswalk,fujunwei/chromium-crosswalk,ondra-novak/chromium.src,ondra-novak/chromium.src,junmin-zhu/chromium-rivertrail,junmin-zhu/chromium-rivertrail,dednal/chromium.src,crosswalk-project/chromium-crosswalk-efl,Pluto-tv/chromium-crosswalk,Pluto-tv/chromium-crosswalk,Chilledheart/chromium,TheTypoMaster/chromium-crosswalk,chuan9/chromium-crosswalk,littlstar/chromium.src,zcbenz/cefode-chromium,PeterWangIntel/chromium-crosswalk,nacl-webkit/chrome_deps,keishi/chromium,PeterWangIntel/chromium-crosswalk,rogerwang/chromium,mogoweb/chromium-crosswalk,jaruba/chromium.src,anirudhSK/chromium,fujunwei/chromium-crosswalk,littlstar/chromium.src,hujiajie/pa-chromium,hgl888/chromium-crosswalk-efl,axinging/chromium-crosswalk,keishi/chromium,keishi/chromium,chuan9/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,krieger-od/nwjs_chromium.src,Jonekee/chromium.src,ChromiumWebApps/chromium,krieger-od/nwjs_chromium.src,ltilve/chromium,littlstar/chromium.src,patrickm/chromium.src,axinging/chromium-crosswalk,krieger-od/nwjs_chromium.src,pozdnyakov/chromium-crosswalk,jaruba/chromium.src,axinging/chromium-crosswalk,robclark/chromium,ChromiumWebApps/chromium,PeterWangIntel/chromium-crosswalk,dushu1203/chromium.src,Jonekee/chromium.src,nacl-webkit/chrome_deps,nacl-webkit/chrome_deps,zcbenz/cefode-chromium,axinging/chromium-crosswalk,nacl-webkit/chrome_deps,markYoungH/chromium.src,rogerwang/chromium,keishi/chromium,nacl-webkit/chrome_deps,rogerwang/chromium,chuan9/chromium-crosswalk,junmin-zhu/chromium-rivertrail,dednal/chromium.src,fujunwei/chromium-crosswalk,ChromiumWebApps/chromium,Chilledheart/chromium,robclark/chromium,Pluto-tv/chromium-crosswalk,Chilledheart/chromium,TheTypoMaster/chromium-crosswalk,krieger-od/nwjs_chromium.src,anirudhSK/chromium,hgl888/chromium-crosswalk-efl,fujunwei/chromium-crosswalk,bright-sparks/chromium-spacewalk,mohamed--abdel-maksoud/chromium.src,Chilledheart/chromium,bright-sparks/chromium-spacewalk,Chilledheart/chromium,ondra-novak/chromium.src,ChromiumWebApps/chromium,mohamed--abdel-maksoud/chromium.src,PeterWangIntel/chromium-crosswalk,jaruba/chromium.src,hujiajie/pa-chromium,hgl888/chromium-crosswalk,Just-D/chromium-1,dednal/chromium.src,Fireblend/chromium-crosswalk,hgl888/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,krieger-od/nwjs_chromium.src,rogerwang/chromium,anirudhSK/chromium,dednal/chromium.src,Jonekee/chromium.src,nacl-webkit/chrome_deps,ltilve/chromium,ltilve/chromium,TheTypoMaster/chromium-crosswalk,keishi/chromium,patrickm/chromium.src,markYoungH/chromium.src,bright-sparks/chromium-spacewalk,Pluto-tv/chromium-crosswalk,Fireblend/chromium-crosswalk,rogerwang/chromium,Fireblend/chromium-crosswalk,M4sse/chromium.src,mogoweb/chromium-crosswalk,Pluto-tv/chromium-crosswalk,pozdnyakov/chromium-crosswalk,jaruba/chromium.src,Chilledheart/chromium,axinging/chromium-crosswalk,anirudhSK/chromium,timopulkkinen/BubbleFish,nacl-webkit/chrome_deps,chuan9/chromium-crosswalk,hujiajie/pa-chromium,krieger-od/nwjs_chromium.src,bright-sparks/chromium-spacewalk,hgl888/chromium-crosswalk,mogoweb/chromium-crosswalk,dushu1203/chromium.src,chuan9/chromium-crosswalk,zcbenz/cefode-chromium,mohamed--abdel-maksoud/chromium.src,jaruba/chromium.src,Just-D/chromium-1,Pluto-tv/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,anirudhSK/chromium,littlstar/chromium.src,patrickm/chromium.src,jaruba/chromium.src,M4sse/chromium.src,jaruba/chromium.src,axinging/chromium-crosswalk,timopulkkinen/BubbleFish,keishi/chromium,crosswalk-project/chromium-crosswalk-efl,ltilve/chromium,pozdnyakov/chromium-crosswalk,bright-sparks/chromium-spacewalk,crosswalk-project/chromium-crosswalk-efl,zcbenz/cefode-chromium,littlstar/chromium.src,Just-D/chromium-1,zcbenz/cefode-chromium,ChromiumWebApps/chromium,Chilledheart/chromium,zcbenz/cefode-chromium,axinging/chromium-crosswalk,ltilve/chromium,markYoungH/chromium.src,ondra-novak/chromium.src,PeterWangIntel/chromium-crosswalk,patrickm/chromium.src,ChromiumWebApps/chromium,M4sse/chromium.src,M4sse/chromium.src,hgl888/chromium-crosswalk,dushu1203/chromium.src,Fireblend/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,pozdnyakov/chromium-crosswalk,junmin-zhu/chromium-rivertrail,crosswalk-project/chromium-crosswalk-efl,dushu1203/chromium.src,timopulkkinen/BubbleFish,dednal/chromium.src,jaruba/chromium.src,Just-D/chromium-1,pozdnyakov/chromium-crosswalk,Jonekee/chromium.src,anirudhSK/chromium,anirudhSK/chromium,mohamed--abdel-maksoud/chromium.src,markYoungH/chromium.src,axinging/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,PeterWangIntel/chromium-crosswalk,Fireblend/chromium-crosswalk,fujunwei/chromium-crosswalk,hgl888/chromium-crosswalk,Jonekee/chromium.src,hujiajie/pa-chromium,timopulkkinen/BubbleFish