move main script to main() and remove obsolete pywikibot.stopme().
move main script to main() and remove obsolete pywikibot.stopme().

In core branch pywikibot.stopme() is called by atexit library.
The function is executed upon normal program termination. This
patch prohibits executing it twice.

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