C++ server code

Latest master merged in. We should discuss the layout of the code.
alright, would we really need this now? I feel since its an internal tool we need little security for the code, it unnecessarily overcomplicates the code with options we don't need.