Draft: Use QCoreApplication for resources and agents
This masively reduces memory usages for each agents/resources from around 20~40MB to 5-20MB.
Currently doesn't work for each agents as this breaks message boxes and dialogs, so can only be merged once every agents/resources is ported away from direct usage of QtWidgets.
Alternatively we could create a new initCore
method that initiates a
QCoreApplication and let agents and resources opt-in to that.