Managing warehouses, supplying, analyzing and controlling inventory