Bug 1025552 - [Messages][Refactoring] Refactor attachment.js and specifically move rendering part to a separate module. r=julienw

Not sure this is necessary to set getSizeForL10n for prototype. Maybe declare in local without exporting it?