Use the mime library from Dart team

mime:
http://pub.dartlang.org/packages/mime