Some groundwork for an API rework for MC1.6

It's more useful to operate on Container classes than GuiScreen classes, to help unify handling of mods that replace the player inventory container.