Mimetypes are objects too

Switched the mimetypes in the config file from a dictionary of dictionaries to
a tuple of MimeType objects. This allows for easier handling and cleaner code.