Moved JSON-RPC server to own thread