Issue #29

I fix issue #29 (Invalid MIME type at purchase invoice documents) by
using the MIME type from Magic.getMagicMatch() instead of the MIME type
submitted by the browser.

Furthermore, I write the Spock specification for it.