Fixed crafting menu crashing the game

Crafting system now uses the `item_factory` instead of naked `itypes` pointer.

I'm not sure whether this is the way to go as `item_controller->find_template` seems to be a teporary solution, but at least the crafting menu doesn't kill the game anymore ;)