Kfsio lib: minor optimization move IsWrite() and IsRead() into the last part of the pending condition to order to minimize invocations.
Client lib: write append state machine: stop chunk server protocol state machine before issuing write id allocation if it is connected to chunk server different that the write master, in order to avoid spurious re-connects while changing chunk server protocol state machine security configuration. Declare append failure in the case where attempt to obtain chunk and chunk server access tokens from the meta server fails. Write append status recovery is now working with authentication / security enabled.