Replaced mime-type with mime.

First part of #1890.

Will still need something for compression.