Introduce analyze option to the main petitions page.

Also: fix petitions retry test.