Move all cache code to mod container. Simplify resource reloading process. Still doesn't fix texture pack reload bug.