remove VARIABLE_HEADER state, unused
Revert "remove VARIABLE_HEADER state, unused"

This reverts commit 8c70b14606ba3110f488e4449212b193874f1692.
parse and serialise CONNACK
turn parser into a switch statement