Refactor MimeMessage to be a struct, start message formatting.

Remove collections traits as per rust-lang/rust#18424