Added stub main functions to client and server.
Some CMake cleanup.