C++ server code

Latest master merged in. We should discuss the layout of the code.
I agree. I think in our discussion with Rick we wanted to rename it to getJSON or something like that.