Bug 870158 - [MMS] Implement attachment of generic media r=gnarf37

Additionally, remove duplicated logic by invoking Attachment object's
`view` method in response to click events on the attachment in the
Thread UI.
(cherry picked from commit fbbd63bee46225a1bc6ea7a62daa296802825863)