Improved MimeType API and tests
Made thread-safe
MimeType improvements
Coment improvements