Simplified search running detection
Moved common login code to SitesLoginActivity and SitesLoginHandler.