Stores the mimetype detected during text extraction

Fixes #144
Merge branch 'feature/store-detected-mimetype' into develop