Add config option for scep workflow type, cleanup code and fix docs.

The workflow triggered by scepc2 is now configurable through a config option.

Removes legacy debugging code and improves documentation.