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

Restructure mod mounting code a bit to make it reusable. Fixes #2703.
Add mod selection mod.

Includes some contributions by rada and sanderd17.
Make the modmod standalone.