Add a resource registry
Currently, the resource system is somewhat limited in that it's littering the codebase with switches for every resource type. This would be much cleaner if it was done as a registry, also allowing mods to add custom resources.