Replaced mime-type with mime.

First part of #1890.

Will still need something for compression.
move this into an internal.compile() method that returns the object map, then assign it to internals.types