Implement version 2.0 changes.

Modify api so that switch processors receive a config instance which the
can copy/modify and the return the resulting config instance.