Added build transaction and reply header functions to Messages protocol.