Compute wait time using secondsToMidnight
Remove two dead plugins
Fix account checkLogin + related code cosmetics