C++ server code

Latest master merged in. We should discuss the layout of the code.
is `getValue` the best method for this? I can't think of a better one but it makes me think that it will return the value of the object..