Brings back MIME-type parser/emiter

**WORK IN PROGRESS**