Bug 944249 - [Messages] move the segment information request and size check and message type handling to compose.js r=schung

* adds a MessageManager.getSegmentInfo function
* ThreadUI sends a recipientschange event when recipients change
* Compose sends a new event "segmentinfo" when that info changes
* various other refactoring changes in Compose