Do not repeat the login process
Do not repeat the login process

Log calls to site.login when loginstatus is IN_PROGRESS.
If site.logged_in() is True, set the loginstatus and
do not re-attempt to log in.

Change-Id: Icb4c717201c661eed8d4a13eeaf2bbfb1f58aef0

wikimedia/pywikibot-core,darthbhyrava/pywikibot-local,jayvdb/pywikibot-core,xZise/pywikibot-core,magul/pywikibot-core,npdoty/pywikibot,h4ck3rm1k3/pywikibot-core,PersianWikipedia/pywikibot-core,hasteur/g13bot_tools_new,wikimedia/pywikibot-core,hasteur/g13bot_tools_new,TridevGuha/pywikibot-core,hasteur/g13bot_tools_new,Darkdadaah/pywikibot-core,happy5214/pywikibot-core,icyflame/batman,Darkdadaah/pywikibot-core,smalyshev/pywikibot-core,valhallasw/pywikibot-core,jayvdb/pywikibot-core,magul/pywikibot-core,trishnaguha/pywikibot-core,h4ck3rm1k3/pywikibot-core,VcamX/pywikibot-core,npdoty/pywikibot,happy5214/pywikibot-core,emijrp/pywikibot-core