Bug 944249 - move the segment size and send button management to Compose

look at mock_utils, it actually uses a lot of the real utils file (because it makes no real sense to mock them).