Improve mod containers compatibility with Bukkit

Mod containers should implement getIInventory which returns IInventory and set player that uses the container by setPlayer, which can be obtained by getPlayer method.
This does not affect existing containers, it's just for better compatibility.