build-images.py: Add --mediawiki-versions flag
Instead of choosing and reading the wikiversions.json file in
build-images.py, rely on the caller (scap) to supply the list of
desired MediaWiki versions to include.
The corresponding change to Scap is scap!405 (merged)
Bug: T371904