Bug 1697 - Restructed function control flow to aviod branching across initialization.
## this tests we can auth EXTERNAL as ourselves, with root credentialsSERVERROOT_CREDENTIALSSEND 'AUTH EXTERNAL USERID_HEX'EXPECT_COMMAND OKEXPECT_STATE WAITING_FOR_INPUTSEND 'BEGIN'EXPECT_STATE AUTHENTICATED