Bug 930882 - [messages] Sending mms with attachment filename over 40 chars will be failed with incorrect error message [reopened]

Truncate MMS filenames at generation
* Filename, extension and potential marker (e.g. `_2`) all must fit inside 40 characters
* Add tests for truncation
* Use `var` rather than `let` or `const` until behavior in Gecko is standardized