Add engine support to load mods from config and restart into mods.

Restructures mod mounting code to make it reusable for the replay mode. Fixes #2703.
Add mod selection mod.

Includes some contributions by rada and sanderd17.