Fixed many usability bugs, some small memory leaks, added support for decoding "message/partial" messages, and reduced the space needed to decode attachments.