More Inventory Implementation

More work with the inventory system. Added auto equip code for items
that the player can equip. Also minor code clean up.