Move TRP messaging to tr_msg.c. Fix old bug.