Dungeon serialization and new Resource system

Dungeon serialization is now implemented (not tested/debugged yet)
the new Resource system is now compatible with the loading screen, and
will soon be ready to replace the current system.