Manage an overall debug state, and associated hint substates.

Optional dependency: lua51. If lua51 is installed at build time, this
package will contain a module for Lua 5.1.
