Streamline mime_type handling so it is kept in the environment and only explicitly...