C++ server code

Latest master merged in. We should discuss the layout of the code.
do we have auth or is this for later?