Add an implementation of a handler which can be used to output a list of
debug variables.
Move the DebugVars handler into its own header so people can use it.