Add TerminalGeneralResponseMessage and refactor Message. Fix bugs.