Client library: Separation of structure allocation and server connection.
PING command added.
CLI: Support of PING command. Automatic reconnection.