Added optional MimeType as per #21.

I elected not to write a regex to limit the MIME type to the *precise* format as described in http://tools.ietf.org/html/rfc4288#section-4.2 as I don't have enough headache tablets in my possession to undertake such a task!