Inventory system, more modular approach

More modular approach for framework and basic inventory system.