Got item swapping and destroy working.

Item swapping works by drag/drop or click/click. Item destruction works
by right-clicking an item instead of left-clicking the item.

New server commands:

/invr forces a refresh of the player's inventory
/invc clears the player's inventory