Parse configuration block at start of protocol

Closes #2