Return the most recent edition for a given doc by version_number

We're also archiving old editions but this is
belt & braces.