Added inventory stuff.
Merge pull request #86 from EntityReborn/master

Added inv stuffs to support an extension.
added creature_spawn event, added a prefilter to PIE, fixed an NPE with target_player, and fixed some failing tests