Added Inventory backend stuff and two new inventory events.