More robust mimetype detection using Apache Tika.

Tika is what is being used by Modeshape, too, and provides
file extension and magic-bytes based detection.

When generic document artifacts are uploaded, their mimetype is properly
detected and not merely defaulted to application/octet-stream.