new resources system, based on directories

Signed-off-by: Lasconik <caillouxnicolas@gmail.com>