WIP MIME type parsing, for posterity.