Replace 'mime' and update dependencies.

Using [mime-types][1] allows client-side usage via browserify.

[1]: https://github.com/jshttp/mime-types