Various fixes.

- Added real-time config validation.
- Fixed hanging debug messages resulting in 100% cpu usage and
ultimately the PC hanging.
- Fixup for IdHelper
- Bound the lightning upgrade to an item.
- Added config id for armor.