Adds the resource monitor to the debug system.

Use debug(D_RMON, ...); to print debug messages from
the Resource MONitor.
Makes monitor_mode a parsing switch.

Adds monitor_mode as a flag to the parsing book-keeping
structure. This will easy the reuse of hooks for the monitor.