Fix multipart writer to deal with attachment order

Also start implementing multipart reader
WIP checkin
Handle gzipped sections, check md5s
Implement one-byte write()