Add "set_lore" mechanism for dItems

I also reworked dItem mechs a bit, nothing major though.
Add matchesType() and asType() to Elements
Add dNPC mechanisms, along with corresponding tags
Add dWorld Mechanisms
Merge pull request #560 from Morphan1/master

Working on Mechanisms