The client state machine has now been fully rewritten, and encapsulates the miniature state machines implemented in previous PRs.
I've extracted the state machine from IMAPClientHandler and moved it into ClientStateMachine, hence all the code deletion.
The state machine receives a command, response, or continuation request from the IMAPClientHandler and returns an array of Chunk/EventLoopPromise pairs that the client handler should then write to the network.
Also we didn't previously queue Append commands like we did for others, however it's now become apparent that all commands types should be queued, so we do that now.
A lot of tests have been added to make sure everything works.
Note that a lot of sendCommand tests have been deleted as we now precondition on user errors instead of throwing.
Add support for authentication to the new client state machine, with a typical workflow test, and a test to show that attempting to send another command while authenticating will result in an error.