Allow to remove/rename resources dynamically (not from Lua yet). #630