Generalizing context variables (e.g. the former "debug" setting).

You can now specify arbitrary context values, instead of the hardcoded
"debug" that was previously the only option.

Closes #1