major resource refactoring and cleanup
Fixed: load/save also works again. And now also in resource-based games!