string extension_to_type(string extension)
Looks up the file extension in a table to return a suitable MIME type.