split content-type and get real mime type

Nowadays there could be content-types like “text/xml; charset=utf-8
which doesn’t match to ”text/xml” at all. This splits from ; and takes
first element and does the comparison using that instead.
Merge pull request #9 from Smarre/master

Better support for mime types