[D] Add RemoteMsgMgr template for using in communication