Support item requirements for consumable items

Closes #1248
Add "requires_class" to event parsing
Fix potential NULL pointer dereference
Merge pull request #1250 from dorkster/fixes

Fix potential NULL pointer dereference
Merge pull request #1249 from dorkster/item_req

More support for class requirements