Ready for testing phase II

Brought client code to new format of ret_data.
Implemented generic functions to send/parse messages.
Fixed other minor bugs.
Left: Implementing n_cluster, n_client and ping