C++ server code

Latest master merged in. We should discuss the layout of the code.
so for the call is REST, thats the second case (`else if`), and the normal URI case is the third (`else`), what does the first one do? does anyone else know what it does (@TeamCobra/owners)?