Factor out the C++ RPC server code into it's own class.

This Doxygen is clearly a lie!