mimetypes for media, some fixes for elli_handler contract