Refined adding items to inventory API

Opening inventory is now handled in the InventoryKeys module.

Re added OnPlayerAddToInventory and OnPlayerAddedToInventory which are
called from inside InventoryKeys now.

Added GetItemTypeCount which returns the amount of created items of the
specified type.