Logic for working with the <code>Sec-WebSocket-Key</code> and <code>Sec-WebSocket-Accept</code> headers. <p> This is kept separate from Connection objects to facilitate difference in behavior between client and server, as well as making testing easier.