mimeparse

Forked from: http://code.google.com/p/mimeparse/. Basic functions for parsing mime-type names and matching them against a list of media-ranges.