Script to fix inconsistent edition states

Tests live in the script because I don't want them in the test suite.

Should we care about testing this particular test then the test are easily
visible and deletable.
Merge pull request #155 from alphagov/fix-inconsistent-edition-states

Script to fix inconsistent edition states