C++ server code

Latest master merged in. We should discuss the layout of the code.
Use [Rubular](rubular.com) to test out your regexes, or do you use a site more tailored to this flavor of regex?