Added TEXTUREFLAGS_IMMEDIATE_CLEANUP from upstream (and fixed it)
Textures loaded with FreeImage have TEXTUREFLAGS_IMMEDIATE_CLEANUP set
Moved Lua Material() function from client to shared code (flags get passed properly on servers)
Removed mips flag from a few UI materials
Mainmenu background textures get unloaded when they disappear