Add grammar to switch capture on/off.

This adds functionality to enable/disable dictation capture using a JSON state file. Uses the standard (race condition vulnerable) configuration module, but it should be fine for the way we use it.