Moved the mimetypes utility to a singleton class instead of getting the mimetypes on each request.