Inventory (for now only for Java client and without SupplyChannels)

@hajoeichler @OlegIlyenko @gogregor Please review. I want to merge into master since the changes are already big.