Support more filetypes for mime_type().

And because of that change, we go from a linear search to a binary search
based on the extension.