C++ server code

Latest master merged in. We should discuss the layout of the code.
adding tot he list to rename this as well