Add protocol version negotiation when connecting

A bit of a hack, but it works
Set the protocol version explicitly in client integration tests for authentication