Move debugging/introspection functionality to lj_debug.c.