Update xor_cipher_pipe.h

added some exit status for error conditions, and ways for it to die when it errors, needs further work still.

cleaned up the key exchange, there was too much repetition.