Finish Node SetupHSM. Return errors on error.
Return if HSM config is changed or not
Add functions to handle Log and State for a cluster and use it. Finish implementing SetupHSM.