Updated codeflow client to use baseaddress and embedded cert, added nonce and state check.