messages api added to Client (sample in Console/main.cpp), using jQuery on webpage added