Handle anvil inventories.

The inventory is created with a specific name, which is then used to handle inventory events.
A home is then added with the name entered into the anvil.