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