RELOAD-208 Implement a mechanism for detecting a protocol version

Checking protocol version mechanism on server and client. Appropriate fixes should me made to the build script that creates protocol version data for client and server.