Add new Player and item interface function - HasItem(uint32 entry)

Also other small code cleanup