Stabilize automated tests

DoEditTests:
  needed a potential retry with new login
TriggerAbuseFilterTest + TriggerEditCaptchaTest:
  needed to clear tokens + cookies for anonymous editing

Change-Id: I809e34f40863c2f679a18010ed78cbd8e2fcb471