Add Ore infrastructure and l_register_ore()