CommandBase, ItemToggleable, InventoryHelper.

- Added CommandBase. CommandDebug is enabled by default in dev
environments. I also might make it available normally under a config
option for map makers, as the tools could be useful to them as well.
- ItemToggleable. More lib’ing up things to promote code reuse.
- Made InventoryHelper a little more robust.