remove mime type from metadata; include extension

this is to remove the mime-component dependency which adds 35kb to the
bundle size.

this should bump the major version since it’s a breaking change. it’s
pretty easy to update by simply requiring mime-component and using it
on file.extension.

closes #7