Resources: Clear all materials when a new game is loaded

It is presently necessary to clear all materials from the resource
system when loading a new game.

Todo for later: It should only be necessary to clear the "runtime"
(i.e., game) materials rather than all of them.