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

No it's not necessary, moved it to the local function scope. Basically we can do the same with almost every "private" function (that starts from "_").