Villager and item requirement fixes and additions

Current villager states will save separately for every player.
Item requirements now work correctly.
Rewrote part of the villager handling.