With the midterm congressional primaries about to go into full swing, the Department of Homeland Security is playing catch-up in helping to ensure that state election systems are secure against cybertampering by the Russians or others bent on mischief.