Refactor Thread UI markup as a template
Implement MMS thread rendering with CSS

This approach allows for more flexibility when implementing rendering
differences between MMS threads and SMS threads.