Added blacksmith NPC functionality

Added blacksmith functionality and related functions. Should work. Have
not tested yet.