Refactor RPCServer and rename to ConsoleServer