PHP model of an http://en.wikipedia.org/wiki/Internet_media_type