Use our own MIME types library

Closes #158.