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

Branch is the same