Implemented a mime parser, although so far untested (and almost assuredly broken)