Refactoring and sided inventory implementation

Refactored much of the code to increase comprehensibility. Started
implementing hopper interaction for the stone crucible.