Added a cache to the texture loader to speed up WAD loading a bit. Fixes #143.