commandserver: initial version of C event functions
commandserver: C++ beta version