Improved mime type handling for HTTP loader. Relates to #20