Use shared_ptr for passing QuickMods around

Also fix some segfaults
Merge branch 'feature_quickmod' of github.com:MultiMC/MultiMC5 into feature_quickmod