changes in compose with green tests for compose_test.js
factorize hasAttachment() and use it when deciding if we should update the text value
some simplifications and send an event when segmentinfo changes
segmentinfo -> segmentinfochange
comment changes
put the send button update in its own function